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.

53 lines
1.7 KiB

minversion = 2.0
envlist = py3,py27,pep8
skipsdist = True
usedevelop = True
install_command = {toxinidir}/tools/ {env:UPPER_CONSTRAINTS_FILE:} {opts} {packages}
setenv =
# Install also sitemap scraping tool, not installed by default
# therefore not in requirements file
deps = scrapy>=1.0.0
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 sitemap
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
# commands = functional test command goes here
commands = {posargs}
commands = python build_sphinx
show-source = True
builtins = _
# 28 is currently the most complex thing we have
ignore = H101