watcher-specs/tox.ini
Vincent Francoise c5e776c8cb Added doc8 for specs validation
In this patchset I introduce doc8 as a new tool to validate the
layout of our specs.

Change-Id: Ie3150140fdc80d5e208d70d521371e7bffa5ba1d
2016-03-17 15:19:32 +01:00

37 lines
850 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]
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
python setup.py testr --slowest --testr-args='{posargs}'
[testenv:venv]
commands = {posargs}
[testenv:docs]
setenv = PYTHONHASHSEED=0
commands =
find . -type f -name "*.pyc" -delete
doc8 doc/source/ README.rst
python setup.py build_sphinx
[testenv:pep8]
deps = -r{toxinidir}/test-requirements.txt
commands =
doc8 doc/source/ README.rst
flake8 {posargs}
[flake8]
ignore = E128
exclude = .venv,.git,.tox,doc,.eggs