Skip to content

Commit 36bb427

Browse files
committed
Add flake8 config and sort isort config
1 parent c31a903 commit 36bb427

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

.flake8

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[flake8]
2+
select = B,C,E,F,P,W,B9
3+
max-line-length = 80
4+
### DEFAULT IGNORES FOR 4-space INDENTED PROJECTS ###
5+
# E127, E128 are hard to silence in certain nested formatting situations.
6+
# E203 doesn't work for slicing
7+
# E265, E266 talk about comment formatting which is too opinionated.
8+
# E402 warns on imports coming after statements. There are important use cases
9+
# that require statements before imports.
10+
# E501 is not flexible enough, we're using B950 instead.
11+
# E722 is a duplicate of B001.
12+
# P207 is a duplicate of B003.
13+
# P208 is a duplicate of C403.
14+
# W503 talks about operator formatting which is too opinionated.
15+
ignore = E127, E128, E203, E265, E266, E402, E501, E722, P207, P208, W503
16+
exclude =
17+
.git,
18+
.hg,
19+
max-complexity = 65

.isort.cfg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[settings]
2-
multi_line_output=3
3-
include_trailing_comma=True
42
force_grid_wrap=0
5-
use_parentheses=True
3+
include_trailing_comma=True
64
line_length=88
5+
multi_line_output=3
6+
use_parentheses=True

0 commit comments

Comments
 (0)