This repository has been archived by the owner on Oct 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cfg
63 lines (47 loc) · 1.5 KB
/
setup.cfg
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
56
57
58
59
60
61
62
63
[flake8]
extend-exclude = .*
max-line-length = 120
extend-ignore =
# docstrings FIXME
D10,
# f-strings
WPS305,
# 'Unnecessary generator - rewrite as a set comprehension': `{}` - is ugly, `set()` - my choice
C401,
# 'Found commented out code': many false-positives
E800,
# Found class without a base class
WPS306,
# Found incorrect module name pattern
WPS102,
# Found wrong function call: print
WPS421,
# Print the total number of errors.
count = true
# Count the number of occurrences of each error/warning code and print a report.
statistics = True
# Good variable names which should always be accepted, separated by a comma.
allowed-domain-names = result,
e,
param,
params,
obj,
max-local-variables = 10
# 'WPS231 Found too high function cognitive complexity'
max-cognitive-score = 25
# 'WPS232 Found too high module cognitive complexity'
max-cognitive-average = 20
# 'WPS230 Found too many public instance attributes'
max-attributes = 10
# 'WPS211 Found too many arguments'
max-arguments = 10
[isort]
line_length = 120
# https://pycqa.github.io/isort/docs/configuration/profiles/
profile = pycharm
# https://pycqa.github.io/isort/#multi-line-output-modes
multi_line_output = 3
# For the import styles that use parentheses, you can control whether or not to include a trailing comma after the last import with
include_trailing_comma = True
# PyCharm optimize imports style
lines_after_imports = 2