forked from zephyrproject-rtos/twister
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
34 lines (30 loc) · 844 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
[tox]
envlist = py38,py39,py310,flake8,mypy
isolated_build = True
minversion = 3.20.0
distshare = {homedir}/.tox/distshare
[testenv]
deps = -rrequirements-tests.txt
commands =
pytest tests {env:_TOX_COVERAGE_RUN:} {posargs:}
setenv =
coverage: _TOX_COVERAGE_RUN=--cov
coverage: COVERAGE_FILE={toxinidir}/.coverage
coverage: COVERAGE_PROCESS_START={toxinidir}/.coveragerc
[testenv:flake8]
skip_install = True
deps = flake8
commands = flake8 src/twister2 tests
[testenv:mypy]
skip_install = True
deps =
mypy
types-PyYAML
types-tabulate
commands = mypy src/twister2
[testenv:docs]
deps = -rrequirements-docs.txt
commands_pre = python -c "import shutil; shutil.rmtree('build/html', ignore_errors=True)"
commands =
sphinx-apidoc -o docs/.apidoc src/twister2 -l -F
sphinx-build -a -E -j auto -b html -n docs build/html -v -T