Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 99375e1

Browse files
authored
Bump flake8-pyi to 23.5.0; re-enable F821 (#10143)
1 parent 5fdbf37 commit 99375e1

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

.flake8

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,16 @@
3636
extend-ignore = A, D, N8, SIM, RST, TYP, E301, E302, E305, E501
3737
per-file-ignores =
3838
*.py: E203
39-
*.pyi: B, E701, E741, F401, F403, F405, F821, F822
39+
*.pyi: B, E701, E741, F401, F403, F405, F822
4040
# Since typing.pyi defines "overload" this is not recognized by flake8 as typing.overload.
4141
# Unfortunately, flake8 does not allow to "noqa" just a specific error inside the file itself.
4242
# https://github.com/PyCQA/flake8/issues/1079
4343
# F811 redefinition of unused '...'
44-
stdlib/typing.pyi: B, E701, E741, F401, F403, F405, F811, F821, F822
44+
stdlib/typing.pyi: B, E701, E741, F401, F403, F405, F811, F822
4545
# Generated protobuf files include docstrings
46-
*_pb2.pyi: B, E701, E741, F401, F403, F405, F821, F822, Y021, Y026, Y053, Y054
46+
# *_pb2.pyi: B, E701, E741, F401, F403, F405, F822, Y021, Y026, Y053, Y054
4747

48-
exclude = .venv*,.git
48+
# TODO: Re-enable flake8 on generated protobuf files
49+
# after https://github.com/nipunn1313/mypy-protobuf/issues/523 is resolved
50+
exclude = .venv*,.git,*_pb2.pyi
4951
noqa_require_code = true

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ repos:
3434
additional_dependencies:
3535
- "flake8-bugbear==23.3.23" # must match requirements-tests.txt
3636
- "flake8-noqa==1.3.1" # must match requirements-tests.txt
37-
- "flake8-pyi==23.4.1" # must match requirements-tests.txt
37+
- "flake8-pyi==23.5.0" # must match requirements-tests.txt
3838
types: [file]
3939
types_or: [python, pyi]
4040

requirements-tests.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ black==23.3.0 # must match .pre-commit-confi
33
flake8==6.0.0; python_version >= "3.8" # must match .pre-commit-config.yaml
44
flake8-bugbear==23.3.23; python_version >= "3.8" # must match .pre-commit-config.yaml
55
flake8-noqa==1.3.1; python_version >= "3.8" # must match .pre-commit-config.yaml
6-
flake8-pyi==23.4.1; python_version >= "3.8" # must match .pre-commit-config.yaml
6+
flake8-pyi==23.5.0; python_version >= "3.8" # must match .pre-commit-config.yaml
77
isort==5.12.0; python_version >= "3.8" # must match .pre-commit-config.yaml
88
mypy==1.2.0
99
packaging==23.1

0 commit comments

Comments
 (0)