-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
107 lines (99 loc) · 2.53 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
[isort]
# isort configuration:
# See https://github.com/timothycrosley/isort#multi-line-output-modes
# 3 - one module per line in parenthesis
multi_line_output = 3
# https://github.com/timothycrosley/isort/wiki/isort-Settings
# if the trailing comma should be included for the last modules
include_trailing_comma = true
# where to put unrecognized imports
default_section = FIRSTPARTY
# Should be: max_string_length - 1
line_length = 79
[flake8]
# Base flake8 configuration:
# https://flake8.pycqa.org/en/latest/user/configuration.html
format = wemake
show-source = True
statistics = False
doctests = True
# Plugins:
max-complexity = 6
max-line-length = 80
# strings are in single or double quotes
# inline-quotes = double
# wemake-python-styleguide settings:
i-control-code = True
# Disable some pydocstyle checks:
# Exclude some pydoctest checks globally:
ignore =
# Missing docstring in public module
# D100
# Missing docstring in public package
# D104
# Missing docstring in public nested class
# D106
# ...imported but unused
F401
# First line should end with a period
D400
# First line should be in imperative mood
D401
# line break after binary operator
W504
# per-file ignoring (better to live)
X100
# Unknown directive type "XXX".
RST303
# Unknown interpreted text role "XXX".
RST304
# RST902
RST902, S603, S404
# Found too high module cognitive complexity
WPS232
# Found overused expression
WPS204
# Found too high function cognitive complexity
WPS231, C901
# Found `__init__.py` module with logic
WPS412
# Found line with high Jones Complexity
WPS221
# Found implicit `elif` condition
WPS513
# Found too deep nesting: 21 > 20
WPS220
# Found Cognitive Complexity..
WPS210
# isort found an import in the wrong position
I001
# Found extra indentation
WPS318
# Found wrong function call: print
WPS421
# Found too many expressions
WPS213
# Found `open()` used without a context manager
WPS515
#
WPS440, WPS441
# Found string constant over-use
WPS226
# Excluding some directories:
exclude =
.git
__pycache__
.venv
.eggs
*.egg
# add the following directories
.venv
.mypy_cache
# Ignoring some errors in some files:
per-file-ignores =
# Enable `assert` keyword and magic numbers for tests:
tests/*.py: S101, WPS226, WPS432, D103
[darglint]
# darglint configuration:
# https://github.com/terrencepreilly/darglint
strictness = long