|
22 | 22 | # Y037 Use PEP 604 syntax instead of `typing.Union` and `typing.Optional`. |
23 | 23 | # Currently can't be enabled due to a few lingering bugs in mypy regarding |
24 | 24 | # PEP 604 type aliases (see #4819). |
25 | | -# NQA102 "noqa" code has no matching violations. We often introduce "noqa" comments |
26 | | -# into the typeshed codebase to unblock flake8-pyi PRs, meaning these comments |
27 | | -# have "no matching violations" since the relevant flake8-pyi checks haven't |
28 | | -# yet been released. |
29 | 25 |
|
30 | 26 | [flake8] |
31 | 27 | per-file-ignores = |
32 | 28 | *.py: E203, E301, E302, E305, E501 |
33 | | - *.pyi: B, E301, E302, E305, E501, E701, E741, NQA102, F401, F403, F405, F822, Y037 |
| 29 | + *.pyi: B, E301, E302, E305, E501, E701, E741, F401, F403, F405, F822, Y037 |
34 | 30 | # Since typing.pyi defines "overload" this is not recognized by flake8 as typing.overload. |
35 | 31 | # Unfortunately, flake8 does not allow to "noqa" just a specific error inside the file itself. |
36 | 32 | # https://github.com/PyCQA/flake8/issues/1079 |
37 | 33 | # F811 redefinition of unused '...' |
38 | | - stdlib/typing.pyi: B, E301, E302, E305, E501, E701, E741, NQA102, F401, F403, F405, F811, F822, Y037 |
| 34 | + stdlib/typing.pyi: B, E301, E302, E305, E501, E701, E741, F401, F403, F405, F811, F822, Y037 |
39 | 35 | # Generated protobuf files include docstrings |
40 | | - *_pb2.pyi: B, E301, E302, E305, E501, E701, NQA102, Y021, Y026 |
| 36 | + *_pb2.pyi: B, E301, E302, E305, E501, E701, Y021, Y026 |
41 | 37 |
|
42 | 38 | exclude = .venv*,.git |
43 | 39 | noqa_require_code = true |
0 commit comments