James E. Blair 124f9ed670 Switch docs theme to versioned RTD
To match change I2870450ffd02f55509fcc1297d050b09deafbfb9 in Zuul.

Change-Id: I6a9ae9aafc92444191262010f039afa5d6229082
2021-12-16 11:22:21 -08:00

46 lines
1.2 KiB

minversion = 1.6
skipsdist = True
envlist = linters,docs
basepython = python3
install_command = pip install {opts} {packages}
deps = -r{toxinidir}/requirements.txt
commands =
python setup.py testr --slowest --testr-args='{posargs}'
# 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.
deps = bindep
commands = bindep test
usedevelop = True
install_command = pip install {opts} {packages}
deps =
commands =
sphinx-build -E -W -d doc/build/doctrees -b html doc/source/ doc/build/html
deps = flake8
commands =
flake8 {posargs}
commands = {posargs}
# These are ignored intentionally in openstack-infra projects;
# please don't submit patches that solely correct them or enable them.
ignore = E124,E125,E129,E252,E402,E741,H,W503,W504
show-source = True
exclude = .venv,.tox,dist,doc,build,*.egg
per-file-ignores =
# Allow import * to create a superset of objects