cinder-specs/tox.ini
Andreas Jaeger 44988971ef Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove obsolete sections from setup.cfg
- Update requirements, no need for python_version anymore
- Switch to using sphinx-build
- Use newer openstackdocstheme and Sphinx versions
- Cleanup */source/conf.py to remove now obsolete content.
- Remove install_command from tox.ini, the default is fine
- Fix problems found by sphinx-build

Change-Id: I258ba61fb3c2c5e83e71109dab941e304dde3f76
2020-04-25 16:42:22 +02:00

36 lines
698 B
INI

[tox]
minversion = 3.1.1
envlist = docs,pep8
skipsdist = True
ignore_basepython_conflict = True
[testenv]
basepython = python3
usedevelop = True
setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt
[testenv:docs]
whitelist_externals = rm
commands =
rm -fr doc/build
sphinx-build -W -b html doc/source doc/build/html
doc8 --ignore D001 doc/source
whereto doc/source/_extra/.htaccess doc/test/redirect-tests.txt
[testenv:pep8]
commands =
flake8
doc8 --ignore D001 specs/
[testenv:venv]
commands = {posargs}
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
show-source = True
ignore = E123,E125
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build