-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
36 lines (33 loc) · 853 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
[tox]
envlist = test,lint,docs
[testenv]
basepython = {env:PYTHON:python}
deps =
-rtests-requirements.txt
-rrequirements.txt
commands =
coverage erase
coverage run -m pytest -vv --benchmark-disable --junitxml=junit-{envname}.xml --ignore={toxworkdir}
coverage report --omit={toxworkdir}/*
coverage html --directory=coverage-{envname} --omit={toxworkdir}/*
# Linter environment
[testenv:lint]
deps =
-rtests-requirements.txt
-rrequirements.txt
allowlist_externals = bash
commands =
pylama _modules/ _utils/ _states/
black _modules/ _utils/ _states/ --check
bash lint-sls.sh
[testenv:docs]
changedir = docs
deps =
protobuf==3.19.4
sphinx
sphinx-rtd-theme
-rrequirements.txt
allowlist_externals = sh
commands =
sh ./build_mods_doc.sh
sphinx-build -W -b html -d _build/doctrees . _build/html