-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.cfg
278 lines (234 loc) · 6.26 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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
# nagios-notification-jabber
# setup.cfg
[bdist_wheel]
universal = False
[sdist]
formats = zip
[mypy]
files = notification_jabber.py,tests
check_untyped_defs = True
disallow_any_generics = True
disallow_untyped_calls = True
ignore_errors = False
ignore_missing_imports = True
implicit_reexport = True
strict_optional = True
strict_equality = True
no_implicit_optional = True
warn_unused_ignores = True
warn_redundant_casts = True
warn_unused_configs = True
warn_unreachable = True
warn_no_return = True
[flake8]
max-line-length = 88
select = B,C,E,F,W,T4,C4
doctests = True
[check-manifest]
ignore =
.editorconfig
.env
.env.example
.envrc
.gitattributes
.github
.gitignore
.pre-commit-config.yaml
.pylintrc
.python-version
AUTHORS
COPYING
Makefile
Pipfile
Pipfile.lock
README.rst
TODO
nagios-plugin-notification-jabber.spec
tests
tests.*
[coverage:run]
branch = True
source = .
[coverage:report]
exclude_lines =
pragma: no cover
[isort]
balanced_wrapping = True
combine_as_imports = True
default_section = FIRSTPARTY
force_grid_wrap = 0
force_sort_within_sections = True
force_to_top = True
include_trailing_comma = True
known_first_party = notification_jabber
line_length = 88
lines_after_imports = 2
length_sort = True
multi_line_output = 3
use_parentheses = True
virtual_env = $VIRTUAL_ENV
known_third_party = contextlib2,pytest,pytest_mock,setuptools,slixmpp
[darglint]
docstring_style = sphinx
[bandit]
skips = B507,B411
tests = B101,B102,B103,B104,B105,B106,B107,B108,B110,B112,B201,B301,B302,B303,B304,B305,B306,B307,B308,B309,B310,B311,B313,B314,B315,B316,B317,B318,B319,B320,B321,B323,B324,B325,B402,B403,B404,B405,B406,B407,B408,B409,B410,B412,B413,B501,B502,B503,B504,B505,B506,B601,B602,B603,B604,B605,B606,B607,B608,B609,B610,B611,B701,B702,B703
[tool:check-wheel-contents]
ignore = W002,W004,W007
[tox:tox]
skip_missing_interpreters = True
tox_pyenv_fallback = False
skipsdist = False
envlist =
{py37,py38,py39}
check
check-build
[testenv]
usedevelop = True
setenv =
PYTHONDONTWRITEBYTECODE=1
commands=
pip install .[test]
make test
whitelist_externals =
make
[testenv:check]
skip_install = True
commands =
pip install .[test]
make check
whitelist_externals =
make
[testenv:check-build]
skip_install = True
commands =
make build -B
make check-build -B
whitelist_externals =
make
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
[pylint.MASTER]
ignore = CVS
ignore-patterns =
persistent = yes
load-plugins =
jobs = 1
unsafe-load-any-extension = no
extension-pkg-whitelist =
optimize-ast = no
[pylint.'MESSAGES CONTROL']
confidence =
disable = all
enable = E0001,E0100,E0101,E0102,E0103,E0104,E0105,E0106,E0107,E0110,
E0113,E0114,E0115,E0116,E0117,E0108,E0202,E0203,E0211,E0236,
E0238,E0239,E0240,E0241,E0301,E0302,E0601,E0603,E0604,E0701,
E0702,E0703,E0704,E0710,E0711,E0712,E1003,E1102,E1111,E0112,
E1120,E1121,E1123,E1124,E1125,E1126,E1127,E1132,E1200,E1201,
E1205,E1206,E1300,E1301,E1302,E1303,E1304,E1305,E1306,
C0123,C0200,C0303,C1001,
W0101,W0102,W0104,W0105,W0106,W0107,W0108,W0109,W0110,W0120,
W0122,W0124,W0150,W0199,W0221,W0222,W0233,W0404,W0410,W0601,
W0602,W0604,W0611,W0612,W0622,W0623,W0702,W0705,W0711,W1300,
W1301,W1302,W1303,,W1305,W1306,W1307
R0102,R0201,R0202,R0203
[pylint.REPORTS]
output-format = text
files-output = no
reports = yes
evaluation = 10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
[pylint.BASIC]
good-names = i,j,k,ex,Run,_
bad-names = foo,bar,baz,toto,tutu,tata
name-group =
include-naming-hint = no
property-classes = abc.abstractproperty
const-rgx = (([A-Z_][A-Z0-9_]*)|(__.*__))$
const-name-hint = (([A-Z_][A-Z0-9_]*)|(__.*__))$
class-rgx = [A-Z_][a-zA-Z0-9]+$
class-name-hint = [A-Z_][a-zA-Z0-9]+$
argument-rgx = [a-z_][a-z0-9_]{2,30}$
argument-name-hint = [a-z_][a-z0-9_]{2,30}$
variable-rgx = [a-z_][a-z0-9_]{2,30}$
variable-name-hint = [a-z_][a-z0-9_]{2,30}$
class-attribute-rgx = ([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
class-attribute-name-hint = ([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
method-rgx = [a-z_][a-z0-9_]{2,30}$
method-name-hint = [a-z_][a-z0-9_]{2,30}$
module-rgx = (([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
module-name-hint = (([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
function-rgx = [a-z_][a-z0-9_]{2,30}$
function-name-hint = [a-z_][a-z0-9_]{2,30}$
attr-rgx = [a-z_][a-z0-9_]{2,30}$
attr-name-hint = [a-z_][a-z0-9_]{2,30}$
inlinevar-rgx = [A-Za-z_][A-Za-z0-9_]*$
inlinevar-name-hint = [A-Za-z_][A-Za-z0-9_]*$
no-docstring-rgx = ^_
docstring-min-length = -1
[pylint.ELIF]
max-nested-blocks = 5
[pylint.FORMAT]
max-line-length = 88
ignore-long-lines = ^\s*(# )?<?https?://\S+>?$
single-line-if-stmt = no
no-space-check = trailing-comma,dict-separator
max-module-lines = 1000
indent-string=' '
indent-after-paren = 4
expected-line-ending-format = LF
[pylint.LOGGING]
logging-modules = logging
[pylint.MISCELLANEOUS]
notes = FIXME,XXX,TODO
[pylint.SIMILARITIES]
min-similarity-lines = 4
ignore-comments = yes
ignore-docstrings = yes
ignore-imports = no
[pylint.SPELLING]
spelling-dict =
spelling-ignore-words =
spelling-private-dict-file =
spelling-store-unknown-words = no
[pylint.TYPECHECK]
ignore-mixin-members = yes
ignored-modules =
ignored-classes = optparse.Values,thread._local,_thread._local
generated-members =
contextmanager-decorators = contextlib.contextmanager
[pylint.VARIABLES]
init-import = no
dummy-variables-rgx = (_+[a-zA-Z0-9]*?$)|dummy
additional-builtins =
callbacks = cb_,_cb
redefining-builtins-modules = six.moves,future.builtins
[pylint.CLASSES]
defining-attr-methods = __init__,__new__,setUp
valid-classmethod-first-arg = cls
valid-metaclass-classmethod-first-arg = mcs
exclude-protected = _asdict,_fields,_replace,_source,_make
[pylint.DESIGN]
max-args = 5
ignored-argument-names = _.*
max-locals = 15
max-returns = 6
max-branches = 12
max-statements = 50
max-parents = 7
max-attributes = 7
min-public-methods = 2
max-public-methods = 20
max-bool-expr = 5
[pylint.IMPORTS]
deprecated-modules = optparse
import-graph =
ext-import-graph =
int-import-graph =
known-standard-library =
known-third-party = enchant
analyse-fallback-blocks = no
[pylint.EXCEPTIONS]
overgeneral-exceptions = Exception