|
20 | 20 | # E701 multiple statements on one line (colon) -- disallows "..." on the same line
|
21 | 21 | # F401 imported but unused -- does not recognize re-exports
|
22 | 22 | # https://github.com/PyCQA/pyflakes/issues/474
|
23 |
| -# F822 undefined name in __all__ -- flake8 does not recognize 'foo: Any' |
24 |
| -# https://github.com/PyCQA/pyflakes/issues/533 |
25 | 23 |
|
26 | 24 | # Rules that are out of the control of stub authors:
|
27 | 25 | # E741 ambiguous variable name
|
28 | 26 | # F403 import *' used; unable to detect undefined names
|
29 | 27 | # F405 defined from star imports
|
30 | 28 |
|
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 |
| - |
35 | 29 | [flake8]
|
36 | 30 | extend-ignore = A, D, N8, SIM, RST, TYP, E301, E302, E305, E501
|
37 | 31 | per-file-ignores =
|
38 | 32 | *.py: E203
|
39 |
| - *.pyi: B, E701, E741, F401, F403, F405, F822 |
| 33 | + *.pyi: B, E701, E741, F401, F403, F405 |
40 | 34 | # Since typing.pyi defines "overload" this is not recognized by flake8 as typing.overload.
|
41 | 35 | # Unfortunately, flake8 does not allow to "noqa" just a specific error inside the file itself.
|
42 | 36 | # https://github.com/PyCQA/flake8/issues/1079
|
43 | 37 | # F811 redefinition of unused '...'
|
44 |
| - stdlib/typing.pyi: B, E701, E741, F401, F403, F405, F811, F822 |
| 38 | + stdlib/typing.pyi: B, E701, E741, F401, F403, F405, F811 |
45 | 39 | # Generated protobuf files include docstrings
|
46 |
| - # *_pb2.pyi: B, E701, E741, F401, F403, F405, F822, Y021, Y026, Y053, Y054 |
| 40 | + # *_pb2.pyi: B, E701, E741, F401, F403, F405, Y021, Y026, Y053, Y054 |
47 | 41 |
|
48 | 42 | # TODO: Re-enable flake8 on generated protobuf files
|
49 | 43 | # after https://github.com/nipunn1313/mypy-protobuf/issues/523 is resolved
|
|
0 commit comments