|
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 | 25 |
|
| 26 | +# Outdated rules in flake8-pyi that should possibly be deprecated altogether: |
| 27 | +# Y011 All default values for typed function arguments must be `...` |
| 28 | +# Y015 Attribute must not have a default value other than `...` |
| 29 | + |
26 | 30 | [flake8] |
27 | 31 | per-file-ignores = |
28 | 32 | *.py: E203, E301, E302, E305, E501 |
29 | | - *.pyi: B, E301, E302, E305, E501, E701, E741, F401, F403, F405, F822, Y037 |
| 33 | + *.pyi: B, E301, E302, E305, E501, E701, E741, F401, F403, F405, F822, Y011, Y015, Y037 |
30 | 34 | # Since typing.pyi defines "overload" this is not recognized by flake8 as typing.overload. |
31 | 35 | # Unfortunately, flake8 does not allow to "noqa" just a specific error inside the file itself. |
32 | 36 | # https://github.com/PyCQA/flake8/issues/1079 |
33 | 37 | # F811 redefinition of unused '...' |
34 | | - stdlib/typing.pyi: B, E301, E302, E305, E501, E701, E741, F401, F403, F405, F811, F822, Y037 |
| 38 | + stdlib/typing.pyi: B, E301, E302, E305, E501, E701, E741, F401, F403, F405, F811, F822, Y011, Y015, Y037 |
35 | 39 | # Generated protobuf files include docstrings |
36 | 40 | *_pb2.pyi: B, E301, E302, E305, E501, E701, Y021, Y026 |
37 | 41 |
|
|
0 commit comments