-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
114 lines (102 loc) · 2.2 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
[tox]
envlist = linters,types,security,units,mutation
skipsdist = True
[testenv]
basepython = python3.8
deps =
msgpack
pika
flask
boto3
[testenv:formatter]
basepython = python3.8
skip_install = true
deps =
black
commands =
black -v --config service/pyproject.toml --check service/ tests/ generator.py
[testenv:flake8]
basepython = python3.8
skip_install = true
deps =
flake8
flake8-bugbear
flake8-colors
flake8-docstrings
flake8-isort
flake8-typing-imports
pep8-naming
commands =
flake8 service tests
[testenv:pylint]
basepython = python3.8
skip_install = true
deps =
pyflakes
pylint
commands =
pylint service tests
[testenv:linters]
basepython = python3.8
skip_install = true
deps =
{[testenv]deps}
{[testenv:flake8]deps}
{[testenv:pylint]deps}
commands =
{[testenv:flake8]commands}
{[testenv:pylint]commands}
[testenv:units]
deps =
{[testenv]deps}
coverage
nose
nose-timer
rednose
commands = nosetests --verbosity=2 {posargs:tests} \
--with-timer \
--with-coverage \
--cover-erase \
--cover-package=service \
--cover-min-percentage=100 \
--rednose \
--timer-fail=error \
--cover-html
[testenv:mutation]
setenv =
HOME = {env:HOME:/tmp}
deps =
{[testenv]deps}
mutmut
commands = mutmut run --no-progress --simple-output --CI --paths-to-mutate service --tests-dir tests
[testenv:mypy]
deps =
{[testenv]deps}
mypy
types-flask
msgpack-types
pika-stubs
boto3-stubs
commands = mypy --config-file mypy.ini -p service -p tests
[testenv:vulture]
deps = vulture
commands = vulture service tests --ignore-names return_value,side_effect,healthz
[testenv:types]
basepython = python3.8
skip_install = true
deps =
{[testenv:vulture]deps}
{[testenv:mypy]deps}
commands =
{[testenv:vulture]commands}
{[testenv:mypy]commands}
[testenv:bandit]
deps = bandit
commands = bandit -r service tests
[testenv:security]
basepython = python3.8
skip_install = true
deps =
{[testenv:bandit]deps}
commands =
{[testenv:bandit]commands}