-
Notifications
You must be signed in to change notification settings - Fork 7
/
tox.ini
59 lines (53 loc) · 1.68 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
[tox]
envlist = pep8,py36,mypy,docs
skip_missing_interpreters=True
requires = pip
virtualenv >= 20.2.2
[testenv]
deps=
-rrequirements.dev.txt
-rrequirements.txt
extras=
dataflow_graphic
# Set the environment variable INMANTA_EXTRA_PYTEST_ARGS='--fast' to run in fast mode
commands=py.test --log-level DEBUG --cov=inmanta --cov-report term --cov-report xml --junitxml=junit-{envname}.xml -vvv {env:INMANTA_EXTRA_PYTEST_ARGS:} --durations=50 tests/
# The HOME environment variable is required for Git to discover the user.email and
# user.name config options (required by test case: tests/test_app.py::test_init_project)
passenv=SSH_AUTH_SOCK ASYNC_TEST_TIMEOUT HOME
basepython = python3.6
[testenv:pep8]
deps=
-rrequirements.dev.txt
commands = flake8 --output-file flake8-report.txt --tee src tests tests_common
commands_post = flake8_junit flake8-report.txt junit-pep8.xml
[testenv:isort]
deps=
-rrequirements.dev.txt
commands =
isort --verbose --check -sp setup.cfg --diff -rc src tests tests_common
[testenv:docs]
changedir=docs
setenv =
INMANTA_DONT_DISCOVER_VERSION = ""
deps=
-rrequirements.dev.txt
-rrequirements.txt
commands=py.test -v check_sphinx.py -m "not link_check"
[testenv:docs-link-check]
changedir=docs
setenv =
INMANTA_DONT_DISCOVER_VERSION = ""
deps=
-rrequirements.dev.txt
-rrequirements.txt
commands=py.test -v check_sphinx.py
[testenv:mypy]
deps=
-rrequirements.dev.txt
-rrequirements.txt
commands_pre = mkdir -p coverage
whitelist_externals = */mkdir
setenv = MYPYPATH=stubs:src
commands =
python -m mypy --soft-error-limit=-1 --junit-xml mypy.xml --cobertura-xml-report coverage -p inmanta
ignore_outcome = true