-
Notifications
You must be signed in to change notification settings - Fork 239
/
tox.ini
164 lines (151 loc) · 6.54 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
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
[flake8]
accept-encodings=utf-8
docstring-quotes=double
max-arguments=11
max-attributes=12
max-cognitive-score=18
max-line-complexity=18
max-line-length=160
max-local-variables=6
max-module-members=20
max-try-body-length=3
min-name-length=3
inline-quotes=single
#
# The ones below are always used in runtime.
#
# B012 return/continue/break inside finally blocks cause exceptions to be silenced
# B008 Do not perform function calls in argument default
# C416 Unnecessary <list/set> comprehension - rewrite using <list/set>
# D101 Missing docstring in public class
# D102 Missing docstring in public method
# D105 Missing docstring in magic method
# D107 Missing docstring in __init__
# D200 One-line docstring should fit on one line with quotes
# D204 1 blank line required after class docstring
# D205 1 blank line required between summary line and description
# D210 No whitespaces allowed surrounding docstring text
# D400 First line should end with a period
# DAR101 Missing parameter(s) in Docstring
# DAR201 Missing "Returns" in Docstring
# DAR401 Missing exception(s) in Raises section
# E112 expected an indented block
# E115 expected an indented block (comment)
# E121 continuation line indentation is not a multiple of four
# E122 continuation line missing indentation or outdented
# E123 closing bracket does not match indentation of opening bracket's line
# E124 closing bracket does not match visual indentation
# E125 continuation line with same indent as next logical line
# E126 continuation line over-indented for hanging indent
# E127 continuation line over-indented for visual indent
# E128 continuation line under-indented for visual indent
# E129 visually indented line with same indent as next logical line
# E131 continuation line unaligned for hanging indent
# E221 multiple spaces before operator
# E225 missing whitespace around operator
# E226 missing whitespace around arithmetic operator
# E231 missing whitespace after ':'
# E241 multiple spaces after ':'
# E251 unexpected spaces around keyword / parameter equals
# E252 missing whitespace around parameter equals
# E261 at least two spaces before inline comment
# E272 multiple spaces before keyword
# E302 expected 2 blank lines
# E305 expected 2 blank lines after class or function definition
# E502 the backslash is redundant between brackets
# E713 test for membership should be 'not in'
# E401 multiple imports on one line
# E402 module level import not at top of file
# E401 imported but unused
# F403 'from module import *' used; unable to detect undefined names
# I001 isort found an import in the wrong position
# I003 isort expected 1 blank line in imports, found 0
# I004 isort found an unexpected blank line in imports
# I005 isort found an unexpected missing import
# N801 class name '<...>' should use CapWords convention
# P101 format string does contain unindexed parameters
# P103 other string does contain unindexed parameters
# Q003 Change outer quotes to avoid escaping inner quotes
# W291 trailing whitespace
# W293 blank line contains whitespace
# W504 line break after binary operator
# WPS115 Found upper-case constant in a class
# WPS125 Found builtin shadowing
# WPS303 Found underscored number
# WPS306 Found class without a base class
# WPS317 Found incorrect multi-line parameters
# WPS318 Found extra indentation
# WPS319 Found bracket in wrong position
# WPS323 Found `%` string formatting
# WPS338 Found incorrect order of methods in a class
# WPS404 Found complex default value
# WPS419 Found `try`/`else`/`finally` with multiple return paths
# WPS420 Found wrong keyword -> raises spurious warnings
# WPS462 Wrong multiline string usage
# WPS464 Found empty comment
# WPS503 Found useless returning `else` statement
# WPS515 Found `open()` used without a context manager
#
# These ones raise spurious warnings
#
# WPS110 Found wrong variable name
# WPS121 Found usage of a variable marked as unused
# WPS122 Found all unused variables definition
# WPS604 Found incorrect node inside `class` body
ignore=B008, B012, C416, D101, D102, D105, D107, D200, D204, D205, \
D210, D400, DAR101, DAR201, DAR401, I005, E112, E115, E121, \
E122, E123, E124, E125, E126, E127, E128, E129, E131, E221, \
E225, E226, E231, E241, E251, E252, E261, E272, E302, E305, \
E401, E402, E502, E713, F403, I001, I003, I004, N801, P101, \
P103, Q003, W291, W293, W504, \
\
WPS110, WPS121, WPS122, WPS125, WPS303, WPS306, \
WPS115, WPS317, WPS318, WPS319, WPS323, WPS338, \
WPS404, WPS419, WPS420, WPS462, WPS464, WPS503, \
WPS515, WPS604
#
# These ones are only used on a case-by-case basis.
#
# E117 over-indented
# E222 multiple spaces after operator
# E306 expected 1 blank line before a nested definition,
# E501 line too long
# E712 comparison to True should be 'if cond is True:' or 'if cond:'
# E712 comparison to False should be 'if cond is False:' or 'if not cond:'
# F401 '<name>.*' imported but unused
# F821 undefined name (used only in Cython code which flake8 cannot always process correctly or in embedded code)
# I003 isort expected 1 blank line in imports, found 0
# JS101 Multi-line container not broken after opening character
# JS102 Multi-line container does not close on same column as opening
# Q000 Double quotes found but single quotes preferred (used in settings.py)
# W605 invalid escape sequence
#
per-file-ignores =
src/zato/admin/*.py:JS101, JS102
src/zato/admin/urls.py:JS102
src/zato/admin/settings.py:F401, Q000
src/zato/admin/web/util.py:F821, Q000
src/zato/cli/*.py:JS101, JS102
src/zato/cli/enmasse.py:B023
src/zato/common/ext/*.py:JS101, JS102, Q000
src/zato/common/odb/model/sso.py:JS102
src/zato/common/odb/query/__init__.py:E711, E712, JS101, JS102
src/zato/common/odb/query/pubsub/topic.py:JS101, JS102
src/zato/common/py23_/*: E111, E117, E201, E202, E265, E266, E301, E303, E306, E501, E741, F401, F523, F811, F821, F841, F901, Q000, W605
src/zato/common/util/http.py:Q000
src/zato/cy/simpleio.py:E222
src/zato/distlock/__init__.py:I004, WPS226, WPS412
src/zato/server/connection/web_socket/__init__.py:E265
src/zato/server/ext/*.py:JS101, JS102, Q000
src/zato/server/ext/*.py:JS101, JS102, Q000
src/zato/server/service/*.py:JS101, JS102
src/zato/sso/*.py:JS101, JS102
test/zato/common/test_stats.py:JS101, JS102
test/zato/cy/simpleio_/test_*.py:JS101, JS102
test/zato/test_apispec_open_api.py:JS101, JS102
__init__.py:I003, WPS412, WPS421
test_*.py:E501, WPS111, WPS118, WPS210, WPS425, WPS430, WPS432
exclude =
brython
*/playwright_/*.py
*/src/zato/common/ext/future