-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy path.flake8
More file actions
21 lines (21 loc) · 786 Bytes
/
.flake8
File metadata and controls
21 lines (21 loc) · 786 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[flake8]
select = B,C,E,F,P,T4,W,B9
max-line-length = 80
# E127, E128 are hard to silence in certain nested formatting situations.
# E265, E266 talk about comment formatting which is too opinionated.
# E402 warns on imports coming after statements. There are important use cases
# like demandimport (https://fburl.com/demandimport) that require statements
# before imports.
# E501 is not flexible enough, we're using B950 instead.
# E704 is conflicting with ufmt (autoformatter)
# E722 is a duplicate of B001.
# P207 is a duplicate of B003.
# W503 talks about operator formatting which is too opinionated.
# E203 conflicts with Black
ignore = E127, E128, E265, E266, E402, E501, E704, E722, P207, W503, E203, T484
max-complexity = 50
exclude =
.git,
.hg,
__pycache__,
_build/*,