-
Notifications
You must be signed in to change notification settings - Fork 23
/
.flake8
33 lines (32 loc) · 1.42 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
31
32
33
# This is an example .flake8 config, used when developing flake8-pyi itself.
#
# The following rule now goes against PEP8:
# W503 line break before binary operator
#
# The following rules are incompatible with or largely enforced by black:
# B950 Line too long (flake8-bugbear equivalent of E501)
# E203 whitespace before ':' -- .py files only
# E501 line too long
# W291 trailing whitespace -- .py files only
# W293 blank line contains whitespace -- .py files only
#
# Some rules are considered irrelevant to stub files:
# E301 expected 1 blank line
# E302 expected 2 blank lines
# E305 expected 2 blank lines
# E701 multiple statements on one line (colon) -- disallows "..." on the same line
# E704 multiple statements on one line (def) -- disallows function body on the same line as the def
#
# flake8-bugbear rules that cause too many false positives:
# B905 "`zip()` without an explicit `strict=True` parameter --
# the `strict` parameter was introduced in Python 3.10; we support Python 3.9
# B907 "Use !r inside f-strings instead of manual quotes" --
# produces false positives if you're surrounding things with double quotes
[flake8]
extend-select = B9
max-line-length = 80
max-complexity = 12
noqa-require-code = true
per-file-ignores =
*.py: B905, B907, B950, E203, E501, W503, W291, W293
*.pyi: B, E301, E302, E305, E501, E701, E704, W503