-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
148 lines (131 loc) · 3.18 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
# All configuration for plugins and other utils is defined here.
# Read more about `setup.cfg`:
# https://docs.python.org/3/distutils/configfile.html
[flake8]
# Base flake8 configuration:
# https://flake8.pycqa.org/en/latest/user/configuration.html
format = wemake
statistics = False
doctests = True
enable-extensions = G
count = True
max-string-usages = 4
max-local-variables = 10
max-line-length = 79
# Plugins:
accept-encodings = utf-8
max-complexity = 6
radon-max-cc = 10
radon-no-assert = True
radon-show-closures = True
# Exclude some directories:
exclude =
.git
__pycache__
migrations
.venv
tests
# Ignore some checks for Django's standard files:
per-file-ignores =
settings.py:
# Found mutable module constant
WPS407,
# Found string literal over-use: NAME > 4
WPS226,
# line too long
E501,
models.py:
# Found magic number
WPS432,
task_manager/views/__init__.py:
# Found local folder import
WPS300,
# <something> imported but unused
F401,
forms.py:
# Found a too complex `f` string
WPS237,
# line too long (82 > 79 characters)
E501,
# Found string literal over-use
WPS226,
manage.py:
# Found line with high Jones Complexity
WPS221,
# Found string constant over-use
WPS226,
# Found mutable module constant
WPS407,
# Found nested import
WPS433
tests/*.py:
# Missing docstring in public method / function
D102, D103
#Found outer scope names shadowing
WPS442,
#Found nested function
WPS430,
# Use of assert detected
S101,
# Found too many `assert` statements
WPS218,
# Found magic number
WPS432,
# (Fixture) imported but unused
F401,
# redefinition of unused (fixture)
F811,
task_manager/utils/wait_for_postgres.py:
WPS421,
S311,
task_manager/utils/factories.py:
D205,
D400,
D101,
D102,
WPS432,
S311,
task_manager/management/commands/create_dummy_content.py:
D101,
D102,
WPS110,
ignore =
# Found too long ``try`` body length
WPS229,
# Coding magic comment not found
C101,
# Missing parameter(s) in Docstring
DAR101,
# Missing "Returns" in Docstring
DAR201,
# Missing "Yields" in Docstring
DAR301,
# Missing exception(s) in Raises section
DAR401,
# Missing docstring in public module
D100,
# Missing docstring in public package
D104,
# Missing docstring in public nested class
D106,
# Remove bad quotes
Q000,
# Found `f` string
WPS305,
# Found `__init__.py` module with logic
WPS412,
# Line break before binary operator
W503,
# Found implicit string concatenation
WPS326,
# Found class without a base class: Meta
WPS306,
# Too many base classes (ok for mixins and base views)
WPS215,
# Found too many module members
WPS202,
[isort]
multi_line_output = 3
include_trailing_comma = true
# Should be: max-line-length - 1
line_length = 78