Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 50acb57

Browse files
authored
Ignore flake8 extensions stubbed by typeshed (#9715)
1 parent 1387a9e commit 50acb57

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

.flake8

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
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+
111
# The following rules are incompatible with or enforced by black:
212
# E203 whitespace before ':' -- scripts only
313
# E301 expected 1 blank line
@@ -19,16 +29,17 @@
1929
# F405 defined from star imports
2030

2131
[flake8]
32+
extend-ignore = A, D, N8, SIM, RST, TYP, E301, E302, E305, E501
2233
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
2536
# Since typing.pyi defines "overload" this is not recognized by flake8 as typing.overload.
2637
# Unfortunately, flake8 does not allow to "noqa" just a specific error inside the file itself.
2738
# https://github.com/PyCQA/flake8/issues/1079
2839
# 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
3041
# Generated protobuf files include docstrings
31-
*_pb2.pyi: B, E301, E302, E305, E501, E701, Y021, Y026
42+
*_pb2.pyi: B, E701, Y021, Y026
3243

3344
exclude = .venv*,.git
3445
noqa_require_code = true

0 commit comments

Comments
 (0)