|
28 | 28 | # F403 import *' used; unable to detect undefined names |
29 | 29 | # F405 defined from star imports |
30 | 30 |
|
| 31 | +# Ignored to workaround pyflakes issues with stub files |
| 32 | +# (the bugs this rule catches are caught by our other tests anyway): |
| 33 | +# F821 undefined name |
| 34 | + |
31 | 35 | [flake8] |
32 | 36 | extend-ignore = A, D, N8, SIM, RST, TYP, E301, E302, E305, E501 |
33 | 37 | per-file-ignores = |
34 | 38 | *.py: E203 |
35 | | - *.pyi: B, E701, E741, F401, F403, F405, F822 |
| 39 | + *.pyi: B, E701, E741, F401, F403, F405, F821, F822 |
36 | 40 | # Since typing.pyi defines "overload" this is not recognized by flake8 as typing.overload. |
37 | 41 | # Unfortunately, flake8 does not allow to "noqa" just a specific error inside the file itself. |
38 | 42 | # https://github.com/PyCQA/flake8/issues/1079 |
39 | 43 | # F811 redefinition of unused '...' |
40 | | - stdlib/typing.pyi: B, E701, E741, F401, F403, F405, F811, F822 |
| 44 | + stdlib/typing.pyi: B, E701, E741, F401, F403, F405, F811, F821, F822 |
41 | 45 | # Generated protobuf files include docstrings |
42 | | - *_pb2.pyi: B, E701, E741, F401, F403, F405, F822, Y021, Y026, Y053, Y054 |
| 46 | + *_pb2.pyi: B, E701, E741, F401, F403, F405, F821, F822, Y021, Y026, Y053, Y054 |
43 | 47 |
|
44 | 48 | exclude = .venv*,.git |
45 | 49 | noqa_require_code = true |
0 commit comments