97 lines
2.5 KiB

minversion = 3.18.0
envlist = cover,docs,pep8,py3,pylint,update-states
setenv =
# TODO(stephenfin): Remove once we bump our upper-constraint to SQLAlchemy 2.0
# We need to install a bit more than just `test' because those drivers have
# custom tests that we always run
deps =
commands =
stestr run {posargs}
deps =
commands =
sphinx-build -E -W -b html doc/source doc/build/html
doc8 doc/source
commands =
find . -type f -name "*.pyc" -delete
pifpaf -e TAKSFLOW_TEST run {env:PIFPAF_DAEMON} {env:PIFPAF_OPTS} -- stestr run
allowlist_externals =
deps =
commands = {toxinidir}/tools/update_states.sh
allowlist_externals =
commands = pre-commit run -a
deps =
commands = pylint --rcfile=pylintrc taskflow
deps =
setenv =
PYTHON=coverage run --source taskflow --parallel-mode
commands =
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
commands = {posargs}
builtins = _
exclude = .venv,.tox,dist,doc,*egg,.git,build,tools
ignore = E305,E402,E721,E731,E741,W503,W504
import_exceptions =
# Settings for doc8:
# Ignore doc/source/user/history.rst, it includes generated ChangeLog
# file that fails with "D000 Inline emphasis start-string without
# end-string."
ignore-path = doc/*/target,doc/*/build*
deps = -r{toxinidir}/doc/requirements.txt
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
# Do not install any requirements. We want this to be fast and work even if
# system dependencies are missing, since it's used to tell you what system
# dependencies are missing! This also means that bindep must be installed
# separately, outside of the requirements files, and develop mode disabled
# explicitly to avoid unnecessarily installing the checked-out repo too (this
# further relies on "tox.skipsdist = True" above).
deps = bindep
commands = bindep test
usedevelop = False