packstack/tox.ini
Takashi Kajinami dd98e5cc05 Move documentation source file to the dedicated sub directory
... and ignore the documentation files built.

Change-Id: Ia5a02aaaa288d38da0ab287ef4fc527e4ba4cfd5
2025-03-14 18:24:11 +09:00

48 lines
1.2 KiB
INI

[tox]
minversion = 3.18.0
envlist = py39,py312,pep8,releasenotes,docs
skipsdist = False
[testenv]
usedevelop = True
setenv = VIRTUAL_ENV={envdir}
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_ALL=C
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
allowlist_externals = /usr/bin/find
commands = /usr/bin/find . -type f -name "*.pyc" -delete
stestr run {posargs}
[tox:jenkins]
sitepackages = True
[testenv:pep8]
commands = flake8
[testenv:cover]
setenv = NOSE_WITH_COVERAGE=1
[testenv:venv]
commands = {posargs}
[testenv:docs]
commands = sphinx-build -a -E -W -d docs/build/doctrees -b html docs/source docs/build/html
[testenv:releasenotes]
deps = -r{toxinidir}/test-requirements.txt
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[flake8]
# H803 skipped on purpose per list discussion.
# E123, E125 skipped as they are invalid PEP-8.
#
# All other checks should be enabled in the future.
ignore = E123,E125,E501,H404,H405,H305,H306,H307,W504
show-source = True
exclude=.venv,.git,.tox,.eggs