-
Notifications
You must be signed in to change notification settings - Fork 6
/
.flake8
47 lines (47 loc) · 1.16 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
[flake8]
exclude = .git,__pycache__,docs,build,dist,examples,setup.py,bin
max-complexity = 10
max-line-length = 80
ignore =
# module level import location
E402,
# space before/after operator
E221, E222,E251,
# multiple spaces after/after keyword
E271, E272,
# line too long
E501,
# whitespace before/after ...
E201, E203, E202, E231, E241, E211, E116, E127,
# same indent
E129,
# comment indent not mod(4)
E114,
# cont line indentation
E128, E126, E124, E125, E131,
# blank lines
W391, E301, E303,
# multiple statements on one line
E701, E704,
# space before bracket
C0326,
# trailing whitespace
W291,
# Complex methods
C901,
# Do not use bare 'except'
E722,
# allow line breaks after binary operators
W504,
# allow lambda assignment (used for partial callbacks)
E731,
# multiple statements per lin
E702,
# unused argument
W613,
# ambiguous var name (to whom?)
E741,
# explicit delegation
W235,
# space before nested definition (we use a marker line)
E306