-
Notifications
You must be signed in to change notification settings - Fork 62
/
tox.ini
39 lines (31 loc) · 843 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
[tox]
envlist = test,flake8,pylint,bandit,mypy
[testenv]
basepython=python3
skip_install = true
[testenv:test]
sitepackages = true
commands = python3 -m pytest --cov=atomic_reactor {posargs:"tests"}
[testenv:pylint]
deps = pylint==2.9.6
commands = python3 -m pylint atomic_reactor tests
[testenv:flake8]
deps = flake8
commands = python3 -m flake8 atomic_reactor tests
[testenv:bandit]
deps = bandit
commands = bandit-baseline -r atomic_reactor -ll -ii
[testenv:mypy]
deps = mypy==0.910
commands =
mypy \
--install-types \
--non-interactive \
--ignore-missing-imports \
--package {posargs:"atomic_reactor"}
[coverage:report]
skip_covered = true
sort = Cover
[pytest]
addopts = -n=2 -ra --color=auto --html=__pytest_reports/atomic-reactor-unit-tests.html --self-contained-html
render_collapsed = True