2014-11-20 15:31:58 +03:00
|
|
|
[tox]
|
|
|
|
minversion = 1.6
|
2018-01-24 16:48:30 -05:00
|
|
|
envlist = py35,py27,pep8
|
2014-11-20 15:31:58 +03:00
|
|
|
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
|
2018-05-31 09:19:47 -04:00
|
|
|
commands = stestr run '{posargs}'
|
2014-11-20 15:31:58 +03:00
|
|
|
|
|
|
|
[testenv:pep8]
|
|
|
|
commands = flake8
|
|
|
|
|
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
|
|
|
|
|
|
|
[testenv:cover]
|
|
|
|
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
|
|
|
|
|
|
|
[testenv:docs]
|
2018-01-12 16:05:43 -05:00
|
|
|
deps = -r{toxinidir}/doc/requirements.txt
|
|
|
|
commands =
|
|
|
|
sphinx-build -W -b html doc/source doc/build/html
|
2014-11-20 15:31:58 +03:00
|
|
|
|
|
|
|
[flake8]
|
|
|
|
# H803 skipped on purpose per list discussion.
|
|
|
|
# E123, E125 skipped as they are invalid PEP-8.
|
|
|
|
|
|
|
|
show-source = True
|
2014-11-26 16:19:13 +03:00
|
|
|
ignore = E123,E125,H803,H904
|
2014-11-20 15:31:58 +03:00
|
|
|
builtins = _
|
2016-11-08 13:40:43 -05:00
|
|
|
exclude=.venv,.git,.tox,dist,doc,*_apiclient*,*lib/python*,*egg,build
|