forked from magma/magma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
90 lines (87 loc) · 3.39 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
[flake8]
max-complexity = 20
strictness = short
ignore =
W503, # line break before binary operator
W504, # line break occurred after a binary operator
# wemake-python-styleguide warnings
# See https://wemake-python-stylegui.de/en/latest/pages/usage/violations/index.html for doc
WPS102, # Found incorrect module name pattern
WPS110, # Found wrong variable name
WPS111, # Found too short name
WPS115, # Found upper-case constant in a class
WPS201, # Found module with too many imports
WPS202, # Found too many module members
WPS204, # Found overused expression
WPS210, # Found too many local variables
WPS211, # Found too many arguments
WPS212, # Found too many return statements
WPS213, # Found too many expressions
WPS214, # Found too many methods
WPS217, # Found too many await expressions
WPS221, # Found line with high Jones Complexity
WPS223, # Found too many `elif` branches
WPS226, # Found string constant over-use
WPS229, # Found too long try body length
WPS230, # Found too many public instance attributes
WPS231, # Found function with too much cognitive complexity
WPS232, # Found module cognitive complexity that is too high
WPS235, # Found too many imported names from a module
WPS238, # Found too many raises in a function
WPS220, # Found too deep nesting
WPS305, # Found `f` string
WPS317, # Found incorrect multi-line parameters
WPS318, # Found extra indentation
WPS319, # Found bracket in wrong position
WPS323, # Found percent string formatting
WPS326, # Found implicit string concatenation
WPS331, # Found variables that are only used for `return`
WPS336, # Found explicit string concatenation
WPS337, # Found multiline conditions
WPS338, # Found incorrect order of methods in a class
WPS348, # Found line starting with a dot
WPS352, # Found multiline loop
WPS414, # Found incorrect unpacking target
WPS420, # Found wrong keyword
WPS421, # Found wrong function
WPS428, # Found statement that has no effect
WPS430, # Found nested function
WPS432, # Found magic number
WPS437, # Found protected attribute usage
WPS440, # Found block variables overlap
WPS457, # Found an infinite while loop
WPS463, # Found a getter without a return value
WPS504, # Found negated condition
# flake8-quotes warnings
Q000, # Remove bad quotes
Q001, # Remove bad quotes from multiline string
# Darglint warnings
DAR003, # Incorrect indentation
DAR102, # Excess parameter(s) in Docstring
DAR402, # Excess exception(s) in Raises section
# pydocstyle warnings
D107, # Missing docstring in __init_
D2, # White space formatting for doc strings
D400, # First line should end with a period
# Others
N802, # function name
N400, # Found backslash that is used for line breaking
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