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.

46 lines
1.4 KiB

minversion = 1.6
envlist = py27,py33,py34,pypy,pep8
skipsdist = True
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
deps = -r{toxinidir}/test-requirements.txt
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 explicitely.
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 \
autogenerate_config_docs/test/ \
bin/doc-tools-check-languages \
cleanup/ \
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}
# H803 skipped on purpose per list discussion.
# E123, E125 skipped as they are invalid PEP-8.
show-source = True
ignore = E123,E125,H803
builtins = _
# 28 is currently the most complex thing we have