devstack-plugin-tobiko/tox.ini

38 lines
593 B
INI

[tox]
skipsdist = True
envlist = linters,docs
minversion = 4.13
[testenv]
usedevelop=False
skip_install = true
[testenv:linters]
deps =
-r {toxinidir}/linters-requirements.txt
commands =
pre-commit --version
pre-commit autoupdate
pre-commit run --all-files
pre-commit install
[testenv:docs]
deps =
-r{toxinidir}/doc/requirements.txt
changedir = doc/source
commands =
sphinx-build -W -b html . ../build/html
[testenv:functional]
deps =
-r test-requirements.txt
setenv =
TESTS_DIR = {toxinidir}/tests/functional
commands =
pytest {posargs:{env:TESTS_DIR}}