11repos :
22- repo : https://github.com/astral-sh/ruff-pre-commit
3- rev : " v0.4.5 "
3+ rev : " v0.6.9 "
44 hooks :
55 - id : ruff
66 args : ["--fix"]
77 - id : ruff-format
88- repo : https://github.com/pre-commit/pre-commit-hooks
9- rev : v4.6 .0
9+ rev : v5.0 .0
1010 hooks :
1111 - id : trailing-whitespace
1212 - id : end-of-file-fixer
1313 - id : check-yaml
1414- repo : https://github.com/adamchainz/blacken-docs
15- rev : 1.16 .0
15+ rev : 1.19 .0
1616 hooks :
1717 - id : blacken-docs
1818 additional_dependencies : [black==24.1.1]
19+ - repo : https://github.com/codespell-project/codespell
20+ rev : v2.3.0
21+ hooks :
22+ - id : codespell
23+ args : ["--toml=pyproject.toml"]
24+ additional_dependencies :
25+ - tomli
1926- repo : https://github.com/pre-commit/pygrep-hooks
2027 rev : v1.10.0
2128 hooks :
2229 - id : python-use-type-annotations
2330- repo : https://github.com/pre-commit/mirrors-mypy
24- rev : v1.10.0
31+ rev : v1.11.2
2532 hooks :
2633 - id : mypy
2734 files : ^(src/|testing/|scripts/)
2835 args : []
36+ language_version : " 3.8"
2937 additional_dependencies :
3038 - iniconfig>=1.1.0
3139 - attrs>=19.2.0
3240 - pluggy>=1.5.0
3341 - packaging
3442 - tomli
35- - types-pkg_resources
43+ - types-setuptools
3644 - types-tabulate
3745 # for mypy running on python>=3.11 since exceptiongroup is only a dependency
3846 # on <3.11
3947 - exceptiongroup>=1.0.0rc8
4048- repo : https://github.com/tox-dev/pyproject-fmt
41- rev : " 2.1.3 "
49+ rev : " 2.2.4 "
4250 hooks :
4351 - id : pyproject-fmt
4452 # https://pyproject-fmt.readthedocs.io/en/latest/#calculating-max-supported-python-version
4553 additional_dependencies : ["tox>=4.9"]
54+ - repo : https://github.com/asottile/pyupgrade
55+ rev : v3.17.0
56+ hooks :
57+ - id : pyupgrade
58+ stages : [manual]
4659- repo : local
4760 hooks :
4861 - id : pylint
@@ -61,9 +74,50 @@ repos:
6174 - id : changelogs-rst
6275 name : changelog filenames
6376 language : fail
64- entry : ' changelog files must be named ####.(breaking|bugfix|deprecation|doc|feature|improvement|trivial|vendor).rst'
65- exclude : changelog/(\d+\.(breaking|bugfix|deprecation|doc|feature|improvement|trivial|vendor).rst|README.rst|_template.rst)
77+ entry : >-
78+ changelog files must be named
79+ ####.(
80+ breaking
81+ | deprecation
82+ | feature
83+ | improvement
84+ | bugfix
85+ | vendor
86+ | doc
87+ | packaging
88+ | contrib
89+ | misc
90+ )(.#)?(.rst)?
91+ exclude : >-
92+ (?x)
93+ ^
94+ changelog/(
95+ \.gitignore
96+ |\d+\.(
97+ breaking
98+ |deprecation
99+ |feature
100+ |improvement
101+ |bugfix
102+ |vendor
103+ |doc
104+ |packaging
105+ |contrib
106+ |misc
107+ )(\.\d+)?(\.rst)?
108+ |README\.rst
109+ |_template\.rst
110+ )
111+ $
66112 files : ^changelog/
113+ - id : changelogs-user-role
114+ name : Changelog files should use a non-broken :user:`name` role
115+ language : pygrep
116+ entry : :user:([^`]+`?|`[^`]+[\s,])
117+ pass_filenames : true
118+ types :
119+ - file
120+ - rst
67121 - id : py-deprecated
68122 name : py library is deprecated
69123 language : pygrep
0 commit comments