-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
53 lines (46 loc) · 893 Bytes
/
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
[tox]
envlist = py{36,37}, linters
[testenv]
deps =
-r{toxinidir}/requirements/requirements_test.txt
coverage==4.5.4
pytest==5.1.2
commands =
coverage run -m pytest {posargs}
coverage report
# Autoformatter
[testenv:black]
basepython = python3
skip_install = true
deps =
black>=19.3b0
commands =
black --check .
# Linters
[testenv:flake8]
basepython = python3
skip_install = true
deps =
flake8>=3.7,<4
commands =
flake8 --version
flake8
[testenv:bandit]
basepython = python3
skip_install = true
deps =
bandit
commands =
bandit --ini .bandit
[testenv:linters]
basepython = python3
skip_install = true
deps =
-r{toxinidir}/requirements/requirements.txt
{[testenv:black]deps}
{[testenv:flake8]deps}
{[testenv:bandit]deps}
commands =
{[testenv:black]commands}
{[testenv:flake8]commands}
{[testenv:bandit]commands}