1+ ci :
2+ autoupdate_commit_msg : " chore: update pre-commit hooks"
3+ autofix_commit_msg : " style: pre-commit fixes"
4+ autoupdate_schedule : monthly
5+
16repos :
27 - repo : https://github.com/pre-commit/pre-commit-hooks
38 rev : v5.0.0
1722 rev : " 0.50"
1823 hooks :
1924 - id : check-manifest
20- stages : [ manual ]
25+ stages : [manual]
2126
2227 - repo : https://github.com/pre-commit/pygrep-hooks
2328 rev : v1.10.0
@@ -33,36 +38,35 @@ repos:
3338 rev : v3.19.1
3439 hooks :
3540 - id : pyupgrade
36- args : [ --py310-plus ]
41+ args : [--py310-plus]
3742
3843 - repo : https://github.com/asottile/setup-cfg-fmt
3944 rev : v2.8.0
4045 hooks :
4146 - id : setup-cfg-fmt
42- args : [ --max-py-version=3.13, --include-version-classifiers ]
47+ args : [--max-py-version=3.13, --include-version-classifiers]
4348
4449 # Notebook formatting
4550 - repo : https://github.com/nbQA-dev/nbQA
4651 rev : 1.9.1
4752 hooks :
4853 - id : nbqa-isort
49- additional_dependencies : [ isort ]
54+ additional_dependencies : [isort]
5055
5156 - id : nbqa-pyupgrade
52- additional_dependencies : [ pyupgrade ]
53- args : [ --py310-plus ]
54-
57+ additional_dependencies : [pyupgrade]
58+ args : [--py310-plus]
5559
5660 - repo : https://github.com/kynan/nbstripout
5761 rev : 0.8.1
5862 hooks :
5963 - id : nbstripout
6064
6165 - repo : https://github.com/sondrelg/pep585-upgrade
62- rev : ' v1.0'
66+ rev : " v1.0"
6367 hooks :
6468 - id : upgrade-type-hints
65- args : [ ' --futures=true' ]
69+ args : [" --futures=true" ]
6670
6771 - repo : https://github.com/MarcoGorelli/auto-walrus
6872 rev : 0.3.4
7579 # hooks:
7680 # - id: oxipng
7781
78-
7982 - repo : https://github.com/python-jsonschema/check-jsonschema
8083 rev : 0.33.0
8184 hooks :
@@ -84,26 +87,44 @@ repos:
8487 - id : check-dependabot
8588 - id : check-readthedocs
8689
87-
8890 - repo : https://github.com/dannysepler/rm_unneeded_f_str
8991 rev : v0.2.0
9092 hooks :
9193 - id : rm-unneeded-f-str
9294
93-
9495 - repo : https://github.com/astral-sh/ruff-pre-commit
9596 rev : " v0.11.10"
9697 hooks :
9798 - id : ruff
98- types_or : [ python, pyi, jupyter ]
99- args : [ --fix, --show-fixes , --line-length=120 ]
99+ types_or : [python, pyi, jupyter]
100+ args : [--fix, --show-fixes, --line-length=120]
100101 # Run the formatter.
101102 - id : ruff-format
102- types_or : [ python, pyi, jupyter ]
103+ types_or : [python, pyi, jupyter]
103104
104105 - repo : https://github.com/pre-commit/mirrors-mypy
105106 rev : " v1.17.1"
106107 hooks :
107108 - id : mypy
108109 files : src
109110 args : []
111+
112+ - repo : https://github.com/adamchainz/blacken-docs
113+ rev : " 1.20.0"
114+ hooks :
115+ - id : blacken-docs
116+ additional_dependencies : [black==24.*]
117+
118+ - repo : https://github.com/codespell-project/codespell
119+ rev : " v2.4.1"
120+ hooks :
121+ - id : codespell
122+ additional_dependencies :
123+ - tomli; python_version<'3.11'
124+ args : ["-L", "gaus"]
125+
126+ - repo : https://github.com/rbubley/mirrors-prettier
127+ rev : " v3.6.2"
128+ hooks :
129+ - id : prettier
130+ types_or : [yaml, markdown, html, css, scss, javascript, json]
0 commit comments