openstack-ironic-specs/tox.ini
Doug Goldstein 090e667fc8
enable sphinx-lint on priorities and specs
Change-Id: Ie307df5f67c1f97dc8f5feb41a54bc95acf94a25
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
2025-01-28 14:09:51 -05:00

42 lines
1,022 B
INI

[tox]
minversion = 3.18.0
envlist = linters,docs
skipsdist = true
[testenv]
usedevelop = True
allowlist_externals = pre-commit
setenv =
VIRTUAL_ENV={envdir}
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
pre-commit
commands =
stestr run {posargs}
pre-commit run --all-files --show-diff-on-failure {posargs}
[testenv:venv]
commands = {posargs:}
[testenv:docs]
sitepackages = False
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
commands =
sphinx-build -b html doc/source doc/build/html
[testenv:pdf-docs]
allowlist_externals = make
sitepackages = False
deps = {[testenv:docs]deps}
commands =
sphinx-build -b latex doc/source doc/build/pdf
make -C doc/build/pdf
[testenv:linters]
deps = pre-commit
allowlist_externals = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure {posargs}