Skip to content

Commit 160d90f

Browse files
sfmigAntonin Blot
authored andcommitted
Update precommit config inside package (neuroinformatics-unit#128)
* Update ruff precommit following PR neuroinformatics-unit#127 * Update pre-commit hooks version to match outer precommit file * Update mypy and check-manifest in template precommit file (they dont get update by precommit bot)
1 parent 8576924 commit 160d90f

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

{{cookiecutter.package_name}}/.pre-commit-config.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ci:
88

99
repos:
1010
- repo: https://github.com/pre-commit/pre-commit-hooks
11-
rev: v4.6.0
11+
rev: v5.0.0
1212
hooks:
1313
- id: check-docstring-first
1414
- id: check-executables-have-shebangs
@@ -19,19 +19,21 @@ repos:
1919
args: [--fix=lf]
2020
- id: requirements-txt-fixer
2121
- id: trailing-whitespace
22-
- repo: https://github.com/charliermarsh/ruff-pre-commit
23-
rev: v0.6.3
22+
- repo: https://github.com/astral-sh/ruff-pre-commit
23+
rev: v0.7.2
2424
hooks:
2525
- id: ruff
26+
args: [ --config=pyproject.toml ]
2627
- id: ruff-format
28+
args: [ --config=pyproject.toml ]
2729
- repo: https://github.com/pre-commit/mirrors-mypy
28-
rev: v1.10.1
30+
rev: v1.13.0
2931
hooks:
3032
- id: mypy
3133
additional_dependencies:
3234
- types-setuptools
3335
- repo: https://github.com/mgedmin/check-manifest
34-
rev: "0.49"
36+
rev: "0.50"
3537
hooks:
3638
- id: check-manifest
3739
args: [--no-build-isolation]

0 commit comments

Comments
 (0)