Debian Codegraph @

tox.ini

raw
1 [tox]
2 envlist = py3{7,8,9,10,11},coverage,docs,lint
3
4 [testenv]
5 allowlist_externals = ./run_tests.py
6 pip_pre = True
7 passenv =
8 CFLAGS
9 CPPFLAGS
10 LDFLAGS
11 setenv =
12 PYTHONPATH = {toxinidir}
13 deps =
14 -rrequirements.txt
15 -rtest_requirements.txt
16 coverage: coverage
17 commands =
18 py3{7,8,9,10,11}: ./run_tests.py
19 coverage: coverage erase
20 coverage: coverage run --source=artifacts --omit="*_test*,*__init__*,*test_lib*" run_tests.py
21 coverage: coverage xml
22
23 [testenv:docs]
24 usedevelop = True
25 deps =
26 -rdocs/requirements.txt
27 commands =
28 sphinx-build -b html -d build/doctrees docs dist/docs
29 sphinx-build -b linkcheck docs dist/docs
30
31 [testenv:lint]
32 skipsdist = True
33 pip_pre = True
34 passenv =
35 CFLAGS
36 CPPFLAGS
37 LDFLAGS
38 setenv =
39 PYTHONPATH = {toxinidir}
40 deps =
41 -rrequirements.txt
42 -rtest_requirements.txt
43 pylint >= 2.17.0, < 2.18.0
44 yamllint >= 1.26.0
45 commands =
46 pylint --version
47 yamllint -v
48 pylint --rcfile=.pylintrc artifacts tests tools
49 yamllint -c .yamllint.yaml data test_data