-
Notifications
You must be signed in to change notification settings - Fork 55
/
.flake8
25 lines (24 loc) · 987 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
[flake8]
select = B,C,E,F,P,T4,W,B9
max-line-length = 120
### DEFAULT IGNORES FOR 4-space INDENTED PROJECTS ###
# E127, E128 are hard to silence in certain nested formatting situations.
# E203 doesn't work for slicing
# 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.
# E722 is a duplicate of B001.
# P207 is a duplicate of B003.
# P208 is a duplicate of C403.
# W503 talks about operator formatting which is too opinionated.
# C901 I like long functions
# F403 should turn this on for ghstack/, lookup exclude format TODO
# E704 see https://github.com/PyCQA/flake8/issues/1925
ignore = E127, E128, E203, E265, E266, E402, E501, E722, P207, P208, W503, C901, F403, F405, E704
exclude =
.git,
.hg,
__pycache__,
max-complexity = 12