|
36 | 36 | extend-ignore = A, D, N8, SIM, RST, TYP, E301, E302, E305, E501 |
37 | 37 | per-file-ignores = |
38 | 38 | *.py: E203 |
39 | | - *.pyi: B, E701, E741, F401, F403, F405, F821, F822 |
| 39 | + *.pyi: B, E701, E741, F401, F403, F405, F822 |
40 | 40 | # Since typing.pyi defines "overload" this is not recognized by flake8 as typing.overload. |
41 | 41 | # Unfortunately, flake8 does not allow to "noqa" just a specific error inside the file itself. |
42 | 42 | # https://github.com/PyCQA/flake8/issues/1079 |
43 | 43 | # 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 |
45 | 45 | # 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 |
47 | 47 |
|
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 |
49 | 51 | noqa_require_code = true |
0 commit comments