-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.flake8
30 lines (26 loc) · 1.11 KB
/
.flake8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# The following rules are incompatible with or enforced by black:
# E203 whitespace before ':' -- scripts only
# E301 expected 1 blank line -- stubs only
# E302 expected 2 blank lines -- stubs only
# E305 expected 2 blank lines -- stubs only
# E501 line too long
# Some rules are considered irrelevant to stub files:
# E701 multiple statements on one line (colon) -- disallows "..." on the same line
# F401 imported but unused -- does not recognize re-exports
# https://github.com/PyCQA/pyflakes/issues/474
# F822 undefined name in __all__ -- flake8 does not recognize 'foo: Any'
# https://github.com/PyCQA/pyflakes/issues/533
# Rules that are out of the control of stub authors:
# E741 ambiguous variable name
# F403 import *' used; unable to detect undefined names
# F405 defined from star imports
[flake8]
per-file-ignores =
*.py: E203, E501
*.pyi: E301, E302, E305, E501, E701, E741, F401, F403, F405, F822
typing.pyi: E301, E302, E305, E501, E701, E741, F401, F403, F405, F822
exclude =
.venv,
.idea,
.mypy_cache,
.git