33 rev : v4.3.0
44 hooks :
55 - id : check-ast
6- exclude : ^tests/legacy/
6+ exclude : ^tests/legacy_1x/ legacy/
77 - id : sort-simple-yaml
8- exclude : ^tests/legacy/
8+ exclude : ^tests/legacy_1x/ legacy/
99 - id : check-yaml
1010 exclude : |
1111 (?x)^(
1212 meta.yaml
13- | tests/legacy/
13+ | tests/legacy_1x/ legacy/
1414 )$
1515 - id : check-xml
16- exclude : ^tests/legacy/
16+ exclude : ^tests/legacy_1x/ legacy/
1717 - id : check-toml
18- exclude : ^tests/legacy/
18+ exclude : ^tests/legacy_1x/ legacy/
1919 - id : check-docstring-first
20- exclude : ^tests/legacy/
20+ exclude : ^tests/legacy_1x/ legacy/
2121 - id : check-json
22- exclude : ^tests/legacy/
22+ exclude : ^tests/legacy_1x/ legacy/
2323 - id : fix-encoding-pragma
24- exclude : ^tests/legacy/
24+ exclude : ^tests/legacy_1x/ legacy/
2525 - id : detect-private-key
26- exclude : ^tests/legacy/
26+ exclude : ^tests/legacy_1x/ legacy/
2727 - id : trailing-whitespace
28- exclude : ^tests/legacy/
28+ exclude : ^tests/legacy_1x/ legacy/
2929 - repo : https://github.com/asottile/add-trailing-comma
3030 rev : v3.1.0
3131 hooks :
3232 - id : add-trailing-comma
3333 # examples/01_atomic_capabilities/audio is ported verbatim from the sibling repo's
3434 # samples/ tree, whose hooks exempt samples/.
35- exclude : ^(tests/legacy|examples/01_atomic_capabilities/audio)/
35+ exclude : ^(tests/legacy_1x/ legacy|examples/01_atomic_capabilities/audio)/
3636 - repo : https://github.com/pre-commit/mirrors-mypy
3737 rev : v1.7.0
3838 hooks :
4545 pb2\.py$
4646 | grpc\.py$
4747 | ^docs
48- | ^tests/legacy/
48+ | ^tests/legacy_1x/ legacy/
4949 | ^examples/01_atomic_capabilities/audio/
5050 | \.html$
5151 | \.pyi$
@@ -67,13 +67,13 @@ repos:
6767 hooks :
6868 - id : black
6969 args : [ --line-length=79 ]
70- exclude : ^(tests/legacy|examples/01_atomic_capabilities/audio)/
70+ exclude : ^(tests/legacy_1x/ legacy|examples/01_atomic_capabilities/audio)/
7171 - repo : https://github.com/PyCQA/flake8
7272 rev : 6.1.0
7373 hooks :
7474 - id : flake8
7575 args : [ "--extend-ignore=E203"]
76- exclude : ^(tests/legacy|examples/01_atomic_capabilities/audio)/
76+ exclude : ^(tests/legacy_1x/ legacy|examples/01_atomic_capabilities/audio)/
7777 - repo : https://github.com/pylint-dev/pylint
7878 rev : v3.0.2
7979 hooks :
@@ -122,6 +122,7 @@ repos:
122122 --disable=C0114, # Disable missing module docstring for quick dev
123123 --disable=C0115, # Disable missing class docstring for quick dev
124124 --disable=C0116, # Disable missing function or method docstring for quick dev
125+ --disable=E0603, # Absolute self-imports and lazy exports in reinforcement
125126 ]
126127 # Tests get their own entry (pylint 3.0.2 discovers rcfiles from the
127128 # invocation CWD, not per linted-file directory, so a tests/pylintrc
@@ -132,7 +133,7 @@ repos:
132133 - id : pylint
133134 name : pylint (tests)
134135 files : ^tests/
135- exclude : ^tests/legacy/
136+ exclude : ^tests/legacy_1x/ legacy/
136137 args : [
137138 --disable=W0511,
138139 --disable=W0718,
@@ -190,19 +191,19 @@ repos:
190191 hooks :
191192 - id : eslint
192193 files : \.(js|jsx)$
193- exclude : ' (.*js_third_party.*|^tests/legacy/)'
194+ exclude : ' (.*js_third_party.*|^tests/legacy_1x/ legacy/)'
194195 args : [ '--fix' ]
195196 - repo : https://github.com/thibaudcolas/pre-commit-stylelint
196197 rev : v14.4.0
197198 hooks :
198199 - id : stylelint
199200 files : \.(css)$
200- exclude : ' (.*css_third_party.*|^tests/legacy/)'
201+ exclude : ' (.*css_third_party.*|^tests/legacy_1x/ legacy/)'
201202 args : [ '--fix' ]
202203 - repo : https://github.com/pre-commit/mirrors-prettier
203204 rev : ' v3.0.0'
204205 hooks :
205206 - id : prettier
206207 additional_dependencies : [ 'prettier@3.0.0' ]
207208 files : \.(tsx?)$
208- exclude : ^tests/legacy/
209+ exclude : ^tests/legacy_1x/ legacy/
0 commit comments