-
Notifications
You must be signed in to change notification settings - Fork 0
/
.flake8
31 lines (29 loc) · 972 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
[flake8]
max-line-length = 80
# Add to default errors (E,F,W,C90)
select = E
# E - Errors from pycodestyle
E,
# W - Warnings from pycodestyle
W,
# C - McCabe complexity warnings
C,
# F - Pyflakes errors
F,
# B - Bugbear warnings
B,
# B950 - Allow to exceed max line length by 10%. For more details, see:
# - https://github.com/PyCQA/flake8-bugbear#opinionated-warnings
# - https://github.com/psf/black/blob/master/docs/the_black_code_style.md#line-length
B950
# Can't use extend-ignore otherwise Bugbear doesn't pick up E501 ignore and
# refuses to enable B950
ignore =
# E203 - see https://github.com/psf/black/blob/master/docs/the_black_code_style.md#slices
E203,
# E221 - so we can have some nicely aligned arguments in somes places
E221,
# E251 - so we can have some nicely aligned arguments in somes places
E251,
# E501 - because we delegate line length check to B950
E501