aboutsummaryrefslogtreecommitdiffstats
path: root/tox.ini
blob: 913e8db5ae5460f0df7bc3c2f9c47fb424ee311b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[tox]
envlist = py38,py39,pylint,pydocstyle,bandit

[testenv]
commands = pytest tests/ --maxfail=1 --cov-fail-under=98 --verbose --doctest-modules
deps = -rtest-requirements.txt
setenv = PYTHONPATH = {toxinidir}/src

[testenv:coverage]
skip_install = True
commands = pytest tests/ --cov=src/onapsdk --cov-report term-missing --cov-report xml
deps = -rtest-requirements.txt
setenv = PYTHONPATH = {toxinidir}/src

[testenv:pylint]
commands = pylint src/
basepython = python3.10

[testenv:pydocstyle]
commands = pydocstyle src/

[testenv:bandit]
commands = bandit -r src/onapsdk