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 :
9797 --disable=R0913,
9898 --disable=E0401,
9999 --disable=E1101,
100+ --disable=E0611, # Runtime meta-path aliases are invisible to astroid
100101 --disable=C0415,
101102 --disable=W0603,
102103 --disable=R1705,
@@ -122,6 +123,7 @@ repos:
122123 --disable=C0114, # Disable missing module docstring for quick dev
123124 --disable=C0115, # Disable missing class docstring for quick dev
124125 --disable=C0116, # Disable missing function or method docstring for quick dev
126+ --disable=E0603, # Absolute self-imports and lazy exports in reinforcement
125127 ]
126128 # Tests get their own entry (pylint 3.0.2 discovers rcfiles from the
127129 # invocation CWD, not per linted-file directory, so a tests/pylintrc
@@ -132,7 +134,7 @@ repos:
132134 - id : pylint
133135 name : pylint (tests)
134136 files : ^tests/
135- exclude : ^tests/legacy/
137+ exclude : ^tests/legacy_1x/ legacy/
136138 args : [
137139 --disable=W0511,
138140 --disable=W0718,
@@ -141,6 +143,7 @@ repos:
141143 --disable=R0913,
142144 --disable=E0401,
143145 --disable=E1101,
146+ --disable=E0611, # Runtime meta-path aliases are invisible to astroid
144147 --disable=C0415,
145148 --disable=W0603,
146149 --disable=R1705,
@@ -190,19 +193,19 @@ repos:
190193 hooks :
191194 - id : eslint
192195 files : \.(js|jsx)$
193- exclude : ' (.*js_third_party.*|^tests/legacy/)'
196+ exclude : ' (.*js_third_party.*|^tests/legacy_1x/ legacy/)'
194197 args : [ '--fix' ]
195198 - repo : https://github.com/thibaudcolas/pre-commit-stylelint
196199 rev : v14.4.0
197200 hooks :
198201 - id : stylelint
199202 files : \.(css)$
200- exclude : ' (.*css_third_party.*|^tests/legacy/)'
203+ exclude : ' (.*css_third_party.*|^tests/legacy_1x/ legacy/)'
201204 args : [ '--fix' ]
202205 - repo : https://github.com/pre-commit/mirrors-prettier
203206 rev : ' v3.0.0'
204207 hooks :
205208 - id : prettier
206209 additional_dependencies : [ 'prettier@3.0.0' ]
207210 files : \.(tsx?)$
208- exclude : ^tests/legacy/
211+ exclude : ^tests/legacy_1x/ legacy/
0 commit comments