Tools used by OpenStack Documentation
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.4 KiB

minversion = 1.6
envlist = py27,pep8
skipsdist = True
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
deps = -r{toxinidir}/test-requirements.txt
commands = python testr --slowest --testr-args='{posargs}'
commands =
# Run doc8 to check .rst and .txt files.
# HACKING.rst is the only file that is not referenced from
# doc/source, so add it explicitly.
doc8 -e txt -e rst doc/source/ HACKING.rst
# Run bashate during pep8 runs to ensure violations are caught by
# the check and gate queues.
bashate autogenerate_config_docs/autohelp-wrapper \
bin/doc-tools-check-languages \
commands = pylint os_doc_tools cleanup
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
commands = {posargs}
commands = python build_sphinx
# H803 skipped on purpose per list discussion.
show-source = True
ignore = H803
builtins = _
# 28 is currently the most complex thing we have