-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtox.ini
65 lines (58 loc) · 1.42 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
[tox]
envlist = py{37,38,39,310,311,312,313}-{pylint,mypy,flake8}
skip_missing_interpreters = true
# Needed since we don't have a setup.py.
skipsdist = true
[testenv]
deps =
py{37,38,39,310,311,312,313}-{type,mypy}: {[testenv:mypy]deps}
py{py3,37,38,39,310,311,312,313}-{lint,pylint},lint: {[testenv:pylint]deps}
py{py3,37,38,39,310,311,312,313}-{lint,flake8},lint: {[testenv:flake8]deps}
setenv =
SOURCES=souls_givifier.py
commands =
py{37,38,39,310,311,312,313}-{type,mypy}: {[testenv:mypy]commands}
py{py3,37,38,39,310,311,312,313}-{lint,pylint},lint: {[testenv:pylint]commands}
py{py3,37,38,39,310,311,312,313}-{lint,flake8},lint: {[testenv:flake8]commands}
[testenv:mypy]
deps =
colorama
cryptography
mypy
commands =
mypy \
--strict \
--show-error-context \
{posargs:{env:SOURCES}}
[testenv:pylint]
deps =
cryptography
mccabe
pylint
commands =
pylint \
--rcfile tox.ini \
--load-plugins=pylint.extensions.bad_builtin \
--load-plugins=pylint.extensions.check_elif \
--load-plugins=pylint.extensions.mccabe \
{posargs:{env:SOURCES}}
[testenv:flake8]
deps =
cryptography
flake8
commands =
flake8 {posargs:{env:SOURCES}} --statistics
[pylint]
reports = no
output-format = colorized
indent-string = " "
disable =
else-if-used,
consider-using-f-string,
line-too-long,
redefined-outer-name,
superfluous-parens,
[flake8]
# E303 = too many blank lines
# E501 = line too long
ignore = E303, E501