-
Notifications
You must be signed in to change notification settings - Fork 0
/
.flake8
40 lines (38 loc) · 1.41 KB
/
.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]
# Specify a list of codes to ignore.
ignore =
E203, # whitespace before ‘:’ (conflicts with black)
E501, # line too long (black will fix this)
W503, # line break before binary operator (conflicts with black)
F821, # undefined name error, (bug in pyflakes)
max-line-length = 100
max-complexity = 12
# Specify the list of error codes you wish Flake8 to report.
select =
B, # flake8 bugbear
C, # McCabe complexity errors
E, # PEP8 errors (pycodestyle)
F, # linting errors (pyflakes)
W, # PEP8 warnings (pycodestyle)
N, # pep8-naming
# ANN, # flake8-annotations, not including everything here.
# TODO: change when is ready
# ANN001, # Missing type annotation for function argument
# ANN201, # Missing return type annotation for public function
A00, # flake8-builtins
U100, # unused arguments
#D102,D103 # Missing docstring in public method/function
#DAR, # darglint, linting docstring style
unused-arguments-ignore-abstract-functions = True
# Suppress ANN200-level errors for functions that return None.
suppress-none-returning = True
# Allow some common datascience variable names.
ignore-names =
# defaults
setUp,tearDown,setUpClass,tearDownClass,asyncSetUp,asyncTearDown,setUpTestData,failureException,longMessage,maxDiff,
X,X_train,X_test
# exclude tests from flake8 checking
exclude = */tests/*
# darglint
#strictness=short
#docstring_style=google