Skip to content

Commit

Permalink
chore(dev): bump pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow authored and fblanchetNaN committed Aug 16, 2023
1 parent df27479 commit 6b2857c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
repos:
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v2.1.1
rev: v2.3.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.260
rev: v0.0.284
hooks:
- id: ruff
args: [--exit-non-zero-on-fix, --fix]
Expand All @@ -24,6 +24,6 @@ repos:
- id: check-toml
- id: check-yaml
- repo: https://github.com/psf/black
rev: 23.3.0
rev: 23.7.0
hooks:
- id: black
2 changes: 1 addition & 1 deletion incipyt/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def run(args, check=True, **kwargs):
"""
formatted = [arg.format() if isinstance(arg, Formattable) else arg for arg in args]
logger.info(" ".join(formatted))
result = subprocess.run(formatted, capture_output=True, check=False, **kwargs)
result = subprocess.run(formatted, capture_output=True, check=False, **kwargs) # noqa: S603
logger.info(result.stdout.decode())
if check and result.returncode:
logger.error(result.stderr.decode())
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ dependencies = [

[project.optional-dependencies]
dev = [
"flit==3.9.0",
"pre-commit==3.3.3",
]
doc = [
Expand Down Expand Up @@ -68,6 +67,7 @@ ignore = [
"E501", "W505", # Disable rules about line-too-long, black does that
"FBT002", #Disable "Boolean default value in function definition" rule
"PLC1901", # Disable "(value == '') can be simplified to (not value)"
"RUF012", # Disable "should be annotated with typing.ClassVar"
]
select = [
"B", "C4", "D", "E", "ERA", "F", "G", "I", "PIE", "PLC", "Q", "RUF", "SIM", "W",
Expand Down

0 comments on commit 6b2857c

Please sign in to comment.