
the doc8 action run twice when run tox -edocs[1] and -epep8[2], that's unnecessary, the ps to update it. [1]: https://github.com/openstack/watcher-specs/blob/master/tox.ini#L28 [2]: https://github.com/openstack/watcher-specs/blob/master/tox.ini#L35 Change-Id: Ie3afd15f1deba5f3e18ca3cb6e85984da85ca4e8 Closes-Bug: #1799022
40 lines
874 B
INI
40 lines
874 B
INI
[tox]
|
|
# Hold back to 1.4, since that's what's in Fedora 20 repos
|
|
# and we don't need anything newer for watcher-specs tests
|
|
minversion = 1.4
|
|
envlist = docs,py27,pep8
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
basepython=python3
|
|
usedevelop = True
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
install_command = pip install -U {opts} {packages}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
whitelist_externals = find
|
|
commands =
|
|
find . -type f -name "*.pyc" -delete
|
|
stestr run --slowest {posargs}
|
|
|
|
[testenv:venv]
|
|
basepython = python3
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
basepython = python3
|
|
setenv = PYTHONHASHSEED=0
|
|
commands =
|
|
find . -type f -name "*.pyc" -delete
|
|
python setup.py build_sphinx
|
|
|
|
[testenv:pep8]
|
|
basepython = python3
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
doc8 doc/source/ README.rst
|
|
flake8 {posargs}
|
|
|
|
[flake8]
|
|
ignore = E128
|
|
exclude = .venv,.git,.tox,doc,.eggs
|