-
Notifications
You must be signed in to change notification settings - Fork 1
/
.flake8
40 lines (37 loc) · 929 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]
max-line-length = 95
max-complexity = 10
# reference: https://lintlyci.github.io/Flake8Rules
ignore =
# line too long (line length is handled by black)
E501,
# white before ':' (may conflict with black)
E203,
# line break before a binary operator
W503,
# continuation line under-indented for visual indent
# (forces indentation to opening parentheses if anything appears on the first line)
E128,
# missing whitespace around arithmetic operator
# (because selective use of whitespace is arguably clearer, e.g.,
# `y = 2 * x**(1/3)` is clearer than `y = 2 * x ** (1 / 3)`
E226,
# mccabe complexity test
C901,
per-file-ignores =
# allow star imports in `__init__.py`
*/__init__.py: F401
exclude =
.git,
__pycache__,
build,
dist,
docs,
.venv,
.eggs,
.tox,
notebooks,
ignore,
legacy,
examples,
scripts