Skip to content

Commit 36515c4

Browse files
authored
flake8: ignore pyflakes codes in *_pb2.pyi files that are ignored in all other .pyi files (#9878)
Several flake8 error codes are currently ignored for all `.pyi` files _except_ those ending with `_pb2.pyi`. This caused a bit of confusion in #9873. This PR makes it so that all codes ignored generally across typeshed are also ignored in `*_pb2.pyi` files
1 parent 843b49e commit 36515c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ per-file-ignores =
3939
# F811 redefinition of unused '...'
4040
stdlib/typing.pyi: B, E701, E741, F401, F403, F405, F811, F822
4141
# Generated protobuf files include docstrings
42-
*_pb2.pyi: B, E701, Y021, Y026
42+
*_pb2.pyi: B, E701, E741, F401, F403, F405, F822, Y021, Y026
4343

4444
exclude = .venv*,.git
4545
noqa_require_code = true

0 commit comments

Comments
 (0)