ae8f4b65e3
os-client-config is clean on E125 and E123 is ignored in recent pep8 by default. Also, even though they are not 'valid' pep8 rules, they are actually both nice styles and consistent with how we code os-client-config anyway. Change-Id: I7764e1511ed580d37b9a0a8be6743a5fa50441e5
39 lines
908 B
INI
39 lines
908 B
INI
[tox]
|
|
minversion = 1.6
|
|
envlist = py34,py27,pypy,pep8
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install -U {opts} {packages}
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:cover]
|
|
commands = python setup.py test --coverage --coverage-package-name=os_client_config --testr-args='{posargs}'
|
|
|
|
[testenv:docs]
|
|
deps =
|
|
{[testenv]deps}
|
|
readme
|
|
commands =
|
|
python setup.py build_sphinx
|
|
python setup.py check -r -s
|
|
|
|
[testenv:releasenotes]
|
|
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
|
|
|
[flake8]
|
|
show-source = True
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,releasenotes/source/conf.py
|
|
|