@@ -5,7 +5,7 @@ exclude: |
55
66repos :
77- repo : https://github.com/pre-commit/pre-commit-hooks
8- rev : v4.4 .0
8+ rev : v6.0 .0
99 hooks :
1010 - id : check-added-large-files
1111 args : ['--maxkb=25']
1515 - id : check-yaml
1616 exclude : |
1717 (?x)^(
18- {{cookiecutter.package_name}}/environment.yml|
1918 {{cookiecutter.package_name}}/.pre-commit-config.yaml
2019 )$
2120 - id : debug-statements
@@ -34,76 +33,60 @@ repos:
3433 - id : python-no-log-warn
3534 - id : python-use-type-annotations
3635 - id : text-unicode-replacement-char
37- - repo : https://github.com/asottile/reorder_python_imports
38- rev : v3.9.0
39- hooks :
40- - id : reorder-python-imports
41- args : [--py37-plus, --add-import, 'from __future__ import annotations']
4236- repo : https://github.com/asottile/setup-cfg-fmt
43- rev : v2 .2.0
37+ rev : v3 .2.0
4438 hooks :
4539 - id : setup-cfg-fmt
4640 exclude : |
4741 (?x)^(
4842 {{cookiecutter.package_name}}/setup.cfg
4943 )$
50- - repo : https://github.com/psf/black
51- rev : 23.1.0
52- hooks :
53- - id : black
54- - repo : https://github.com/charliermarsh/ruff-pre-commit
55- rev : v0.0.241
44+ - repo : https://github.com/astral-sh/ruff-pre-commit
45+ rev : v0.15.2
5646 hooks :
57- - id : ruff
47+ - id : ruff
48+ args : [--fix, hooks, tests]
49+ pass_filenames : false
50+ - id : ruff-format
5851 args : [hooks, tests]
5952 pass_filenames : false
6053- repo : https://github.com/dosisod/refurb
61- rev : v1.10 .0
54+ rev : v2.3 .0
6255 hooks :
6356 - id : refurb
6457 args : [--ignore, FURB126]
6558 exclude : ({{cookiecutter.package_name}})
6659- repo : https://github.com/econchick/interrogate
67- rev : 1.5 .0
60+ rev : 1.7 .0
6861 hooks :
6962 - id : interrogate
7063 args : [-v, --fail-under=40]
7164- repo : https://github.com/executablebooks/mdformat
72- rev : 0.7.16
65+ rev : 1.0.0
7366 hooks :
7467 - id : mdformat
75- additional_dependencies : [
76- mdformat-gfm,
77- mdformat-black,
78- ]
68+ additional_dependencies : [mdformat-gfm]
7969 args : [--wrap, "88"]
8070 files : (README\.md)
8171 exclude : |
8272 (?x)^(
8373 {{cookiecutter.package_name}}/README.md
8474 )$
8575 - repo : https://github.com/executablebooks/mdformat
86- rev : 0.7.16
76+ rev : 1.0.0
8777 hooks :
8878 - id : mdformat
89- additional_dependencies : [
90- mdformat-myst,
91- mdformat-black,
92- ]
79+ additional_dependencies : [mdformat-myst]
9380 args : [--wrap, "88"]
9481 files : (docs/.)
95- # Exclude files with admonitions.
96- # exclude: |
97- # (?x)^(
98- # path/to/file.py
99- # )$
10082- repo : https://github.com/codespell-project/codespell
101- rev : v2.2.2
83+ rev : v2.4.1
10284 hooks :
10385 - id : codespell
10486 additional_dependencies : [tomli]
87+ exclude : (^|/)uv\.lock$
10588- repo : https://github.com/pre-commit/mirrors-mypy
106- rev : ' v0.991 '
89+ rev : ' v1.19.1 '
10790 hooks :
10891 - id : mypy
10992 args : [
@@ -115,4 +98,3 @@ repos:
11598 hooks :
11699 - id : check-hooks-apply
117100 - id : check-useless-excludes
118- # - id: identity # Prints all files passed to pre-commits. Debugging.
0 commit comments