|
2 | 2 | # Since typeshed stubs them, they can still be expected to be found in a |
3 | 3 | # developer's venv for intellisense and reference reasons |
4 | 4 | # A flake8-builtins |
| 5 | +# B flake8-bugbear |
5 | 6 | # D flake8-docstrings |
6 | 7 | # N8 pep8-naming |
7 | 8 | # SIM flake8-simplify |
|
17 | 18 | # E701 Multiple statements on one line (colon) -- disallows "..." on the same line |
18 | 19 |
|
19 | 20 | # Some rules are considered irrelevant to stub files: |
20 | | -# B All flake8-bugbear rules are .py-specific |
21 | 21 | # F401 imported but unused -- does not recognize re-exports |
22 | 22 | # https://github.com/PyCQA/pyflakes/issues/474 |
23 | 23 |
|
|
27 | 27 | # F405 defined from star imports |
28 | 28 |
|
29 | 29 | [flake8] |
30 | | -extend-ignore = A, D, N8, SIM, RST, TYP, E301, E302, E305, E501, E701 |
| 30 | +extend-ignore = A, B, D, N8, SIM, RST, TYP, E301, E302, E305, E501, E701 |
31 | 31 | per-file-ignores = |
32 | 32 | *.py: E203 |
33 | | - *.pyi: B, E741, F401, F403, F405 |
| 33 | + *.pyi: E741, F401, F403, F405 |
34 | 34 | # Since typing.pyi defines "overload" this is not recognized by Flake8 as typing.overload. |
35 | 35 | # Unfortunately, Flake8 does not allow to "noqa" just a specific error inside the file itself. |
36 | 36 | # https://github.com/PyCQA/flake8/issues/1079 |
37 | 37 | # F811 redefinition of unused '...' |
38 | | - stdlib/typing.pyi: B, E741, F401, F403, F405, F811 |
| 38 | + stdlib/typing.pyi: E741, F401, F403, F405, F811 |
39 | 39 | # Generated protobuf files include docstrings, |
40 | 40 | # and import some things from typing_extensions that could be imported from typing |
41 | | - *_pb2.pyi: B, E741, F401, F403, F405, Y021, Y023, Y026, Y053, Y054 |
| 41 | + *_pb2.pyi: E741, F401, F403, F405, Y021, Y023, Y026, Y053, Y054 |
42 | 42 |
|
43 | 43 | exclude = .venv*,.git |
44 | 44 | noqa_require_code = true |
0 commit comments