forked from magma/magma
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.cfg
148 lines (145 loc) · 3.6 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
[flake8]
max-complexity = 20
strictness = short
ignore =
# line break before binary operator
W503,
# line break occurred after a binary operator
W504,
# wemake-python-styleguide warnings
# See https://wemake-python-stylegui.de/en/latest/pages/usage/violations/index.html for doc
# Found incorrect module name pattern
WPS102,
# Found wrong variable name
WPS110,
# Found too short name
WPS111,
# Found upper-case constant in a class
WPS115,
# Found module with too many imports
WPS201,
# Found too many module members
WPS202,
# Found overused expression
WPS204,
# Found too many local variables
WPS210,
# Found too many arguments
WPS211,
# Found too many return statements
WPS212,
# Found too many expressions
WPS213,
# Found too many methods
WPS214,
# Found too many await expressions
WPS217,
# Found line with high Jones Complexity
WPS221,
# Found too many `elif` branches
WPS223,
# Found string constant over-use
WPS226,
# Found too long try body length
WPS229,
# Found too many public instance attributes
WPS230,
# Found function with too much cognitive complexity
WPS231,
# Found module cognitive complexity that is too high
WPS232,
# Found too many imported names from a module
WPS235,
# Found too many raises in a function
WPS238,
# Found too deep nesting
WPS220,
# Found `f` string
WPS305,
# Found incorrect multi-line parameters
WPS317,
# Found extra indentation
WPS318,
# Found bracket in wrong position
WPS319,
# Found percent string formatting
WPS323,
# Found implicit string concatenation
WPS326,
# Found variables that are only used for `return`
WPS331,
# Found explicit string concatenation
WPS336,
# Found multiline conditions
WPS337,
# Found incorrect order of methods in a class
WPS338,
# Found line starting with a dot
WPS348,
# Found multiline loop
WPS352,
# Found incorrect unpacking target
WPS414,
# Found wrong keyword
WPS420,
# Found wrong function
WPS421,
# Found statement that has no effect
WPS428,
# Found nested function
WPS430,
# Found magic number
WPS432,
# Found protected attribute usage
WPS437,
# Found block variables overlap
WPS440,
# Found an infinite while loop
WPS457,
# Found a getter without a return value
WPS463,
# Found negated condition
WPS504,
# flake8-quotes warnings
# Remove bad quotes
Q000,
# Remove bad quotes from multiline string
Q001,
# Darglint warnings
# Incorrect indentation
DAR003,
# Excess parameter(s) in Docstring
DAR102,
# Excess exception(s) in Raises section
DAR402,
# pydocstyle warnings
# Missing docstring in __init_
D107,
# White space formatting for doc strings
D2,
# First line should end with a period
D400,
# Others
# function name
N802,
# Found backslash that is used for line breaking
N400,
E501,
S105,
RST
per-file-ignores =
lte/gateway/python/integ_tests/s1aptests/*.py: WPS118, WPS219
**/tests/*.py: D, WPS, P101
# WPS118: Found too deep access level
# WPS219: Found too long name
[isort]
profile=wemake
src_paths=isort,test
# isort configuration:
# https://github.com/timothycrosley/isort/wiki/isort-Settings
include_trailing_comma = true
use_parentheses = true
# See https://github.com/timothycrosley/isort#multi-line-output-modes
multi_line_output = 3
# Is the same as 80 in flake8:
line_length = 80