-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
66 lines (58 loc) · 1.38 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
[tox]
skipsdist=True
envlist = lint, unit, func
skip_missing_interpreters = True
[testenv]
basepython = python3
setenv = PYTHONPATH={toxinidir}
[testenv:dev-environment]
envdir = {toxinidir}/.venv
deps =
pre-commit
{[testenv:lint]deps}
{[testenv:unit]deps}
{[testenv:func]deps}
commands =
pre-commit install
[testenv:pre-commit]
envdir = {[testenv:dev-environment]envdir}
deps = {[testenv:dev-environment]deps} # ensure that dev-environment is installed
commands = pre-commit run --all-files
[testenv:lint]
commands =
pflake8
pylint --recursive=y .
mypy --install-types --non-interactive --pretty .
black --check --diff --color .
isort --check --diff .
codespell
deps =
.[lint]
{[testenv:unit]deps}
{[testenv:func]deps}
[testenv:reformat]
envdir = {toxworkdir}/lint
deps = {[testenv:lint]deps}
commands =
black .
isort .
[testenv:unit]
deps = .[unittests]
commands = pytest {toxinidir}/tests/unit \
{posargs:-v --cov --cov-report=term-missing --cov-report=html --cov-report=xml}
[testenv:func-smoke]
changedir = {toxinidir}/tests/functional
deps = .[functests]
passenv =
TEST_*
OS_*
commands =
functest-run-suite --smoke {posargs:--keep-faulty-model}
[testenv:func]
changedir = {toxinidir}/tests/functional
deps = .[functests]
passenv =
TEST_*
OS_*
commands =
functest-run-suite {posargs:--keep-faulty-model}