-
-
Notifications
You must be signed in to change notification settings - Fork 102
/
.flake8
40 lines (35 loc) · 897 Bytes
/
.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
[flake8]
# Intial set of rules
# Feel Free to add any new rule here with description of what it does.
# E203 Whitespace before ':'
# E266 Too many leading '#' for block comment
# E501 Line too long (82 > 79 characters)
# W503 Line break occurred before a binary operator
# F405 '<function>' may be undefined, or defined from star imports
# E402 module level import not at top of file
# E731 do not assign a lambda expression, use a def
# F821 undefined name 'get_ipython' --> from generated python files using nbconvert
# W605 invalid escape sequence '\W'
filename =
*.py,
exclude =
.git,
__pycache__,
select =
E772,
F401,
F811,
E901,
E999,
F821,
F822,
F823,
C901, # complexity
E501, # line length
E225 # whitespace around operators
max_complexity = 70
show_source = True
statistics = True
count = True
# TBH I prefer 120 as opposed to 79/88
max_line_length = 120