forked from cdump/investments
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.flake8
55 lines (43 loc) · 1.46 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[flake8]
max-line-length = 200
max-imports = 16
min-name-length = 1
max-line-complexity = 25
max-string-usages = 16
max-local-variables = 25
max-cognitive-score = 24
max-cognitive-average = 24
# magic methods includes
max-methods = 20
# function arguments
max-arguments = 8
max-expressions = 15
ignore =
S101, # assert
D100, # Missing docstring in public module
D101, # Missing docstring in public class
D102, # Missing docstring in public method
D103, # Missing docstring in public function
D104, # Missing docstring in public package
D105, # Missing docstring in magic method
D107, # Missing docstring in __init__
DAR101, # Missing parameter(s) in Docstring
DAR201, # Missing "Returns" in Docstring
E800, # commented out code
N814, # camelcase imported as constant
WPS115, # upper-case constant in a class
WPS202, # too many module members
WPS218, # too many asserts, useful for tests/
WPS226, # Found string constant over-use
WPS237, # too complex `f` string
WPS301, # dotted raw import
WPS305, # f-strings
WPS306, # class without a base class
WPS317, # multilines
WPS318, # Found extra indentation
WPS323, # '%' strings, too many false-positives (strptime, ...)
WPS420, # allow 'pass' (but also 'global','local' & 'del')
WPS421, # allow 'print()' function
WPS454, # wrong `raise` exception type: Exception
WPS602, # @staticmethod
S314, S405, # allow xml.etree.ElementTree