30 lines
683 B
INI
30 lines
683 B
INI
[tox]
|
|
minversion = 2.0
|
|
envlist = docs,pep8
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install -U {opts} {packages}
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
whitelist_externals = echo
|
|
|
|
[testenv:pep8]
|
|
commands =
|
|
flake8
|
|
doc8 --ignore D001 specs/
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
whitelist_externals = rm
|
|
commands =
|
|
rm -rf doc/build
|
|
python setup.py build_sphinx
|
|
# Ignore D001 since we allow lines in excess of 79 characters.
|
|
doc8 --ignore D001 --ignore-path .tox --ignore-path .eggs --ignore-path doc/build --ignore-path manila_specs.egg-info -e txt -e rst
|