-
Notifications
You must be signed in to change notification settings - Fork 1
/
.flake8
27 lines (22 loc) · 1 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
[flake8]
max-line-length = 88
# Rules structured from https://github.com/python/typeshed/blob/main/.flake8
# The following rules are incompatible with or enforced by Black:
# E203 whitespace before ':' -- scripts only
# E301 expected 1 blank line
# E302 expected 2 blank lines
# E305 expected 2 blank lines
# E501 line too long
# Some rules are considered irrelevant to stub files:
# B All flake8-bugbear rules are .py-specific
# 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
# 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
extend-ignore = E203
per-file-ignores =
*.pyi: E301, E302, E305, E501, B, E701, E741, F401, F403, F405
exclude = .git,__pycache__,dist,.mypy_cache