5e51e21fa9
H803 hacking have been removed. https://github.com/openstack-dev/hacking/blob/master/setup.cfg Closes-Bug: #1650734 Change-Id: I40277c75785660893f44ff327e25819da5169881
47 lines
1.4 KiB
INI
47 lines
1.4 KiB
INI
[tox]
|
|
minversion = 2.0
|
|
envlist = py27,pep8
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = {toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
CLIENT_NAME=openstack-doc-tools
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/requirements.txt
|
|
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
|
|
|
[testenv:pep8]
|
|
commands =
|
|
flake8
|
|
# 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 \
|
|
cleanup/remove_trailing_whitespaces.sh
|
|
|
|
[testenv:pylint]
|
|
commands = pylint os_doc_tools cleanup
|
|
|
|
[testenv:releasenotes]
|
|
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|
|
[flake8]
|
|
show-source = True
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,*lib/python*,*egg,build,*autogenerate_config_docs/venv,*autogenerate_config_docs/sources
|
|
# 28 is currently the most complex thing we have
|
|
max-complexity=29
|