-
Notifications
You must be signed in to change notification settings - Fork 5
/
tox.ini
40 lines (38 loc) · 1.69 KB
/
tox.ini
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
# Linter https://github.com/wemake-services/wemake-python-styleguide
# Settings set up https://flake8.pycqa.org/en/latest/user/options.html?highlight=per-file-ignores#full-listing-of-options-and-their-descriptions
[flake8]
max-line-length = 100
max-methods = 25
max-arguments = 8
max-awaits = 8
max-local-variables = 10
max-cognitive-score = 15
ignore = C812,C815,D100,D101,D102,D103,D204,D205,D400,DAR101,N805,Q000,W293,W503,WPS100,WPS118,WPS202,WPS226,WPS305,WPS323,WPS355,WPS410,WPS420,WPS430,WPS437,WPS442,WPS462,WPS601
; C812 missing trailing comma
; C815 missing trailing comma in Python 3.5+
; D100 Missing docstring in public module
; D101 Missing docstring in public class
; D102 Missing docstring in public method
; D103 Missing docstring in public function
; D204 1 blank line required after class docstring
; D205 1 blank line required between summary line and description
; D400 First line should end with a period
; DAR101 Missing parameter(s) in Docstring:
; N805 first argument of a method should be named 'self'
; Q000 Double quotes found but single quotes preferred
; W293 blank line contains whitespace
; W503 line break before binary operator
; WPS100 Found wrong module name
; WPS118 Found too long name
; WPS202 Found too many module members: 91 > 7
; WPS226 Found string literal over-use
; WPS305 Found `f` string
; WPS323 Found `%` string formatting
; WPS355 Found an unnecessary blank line before a bracket
; WPS410 Found wrong metadata variable
; WPS420 Found wrong keyword: global
; WPS430 Found nested function
; WPS437 Found protected attribute usage:
; WPS442 Found outer scope names shadowing
; WPS462 Wrong multiline string usage
; WPS601 Found shadowed class attribute