|
| 1 | +# The following rules come from plugins that are not used by typeshed. |
| 2 | +# Since typeshed stubs them, they can still be expected to be found in a |
| 3 | +# developer's venv for intellisense and reference reasons |
| 4 | +# A flake8-builtins |
| 5 | +# D flake8-docstrings |
| 6 | +# N8 pep8-naming |
| 7 | +# SIM flake8-simplify |
| 8 | +# RST flake8-rst-docstrings |
| 9 | +# TYP flake8-typing-imports |
| 10 | + |
1 | 11 | # The following rules are incompatible with or enforced by black: |
2 | 12 | # E203 whitespace before ':' -- scripts only |
3 | 13 | # E301 expected 1 blank line |
|
19 | 29 | # F405 defined from star imports |
20 | 30 |
|
21 | 31 | [flake8] |
| 32 | +extend-ignore = A, D, N8, SIM, RST, TYP, E301, E302, E305, E501 |
22 | 33 | per-file-ignores = |
23 | | - *.py: E203, E301, E302, E305, E501 |
24 | | - *.pyi: B, E301, E302, E305, E501, E701, E741, F401, F403, F405, F822 |
| 34 | + *.py: E203 |
| 35 | + *.pyi: B, E701, E741, F401, F403, F405, F822 |
25 | 36 | # Since typing.pyi defines "overload" this is not recognized by flake8 as typing.overload. |
26 | 37 | # Unfortunately, flake8 does not allow to "noqa" just a specific error inside the file itself. |
27 | 38 | # https://github.com/PyCQA/flake8/issues/1079 |
28 | 39 | # F811 redefinition of unused '...' |
29 | | - stdlib/typing.pyi: B, E301, E302, E305, E501, E701, E741, F401, F403, F405, F811, F822 |
| 40 | + stdlib/typing.pyi: B, E701, E741, F401, F403, F405, F811, F822 |
30 | 41 | # Generated protobuf files include docstrings |
31 | | - *_pb2.pyi: B, E301, E302, E305, E501, E701, Y021, Y026 |
| 42 | + *_pb2.pyi: B, E701, Y021, Y026 |
32 | 43 |
|
33 | 44 | exclude = .venv*,.git |
34 | 45 | noqa_require_code = true |
0 commit comments