2012-02-29 16:42:26 -05:00
|
|
|
[tox]
|
2014-09-03 19:05:27 +00:00
|
|
|
envlist = py26,py27,py33,py34,pypy,pep8
|
2013-12-09 14:27:57 +00:00
|
|
|
minversion = 1.6
|
|
|
|
skipsdist = True
|
2012-02-29 16:42:26 -05:00
|
|
|
|
|
|
|
[testenv]
|
2013-12-09 14:27:57 +00:00
|
|
|
usedevelop = True
|
|
|
|
install_command = pip install -U {opts} {packages}
|
2012-02-29 14:14:14 -08:00
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
2012-12-24 22:50:58 -06:00
|
|
|
OS_STDOUT_NOCAPTURE=False
|
|
|
|
OS_STDERR_NOCAPTURE=False
|
2014-08-26 15:29:44 +00:00
|
|
|
PYTHONHASHSEED=0
|
2012-12-24 22:50:58 -06:00
|
|
|
|
2013-05-29 17:23:30 +08:00
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
2012-12-24 22:50:58 -06:00
|
|
|
commands = python setup.py testr --testr-args='{posargs}'
|
2012-02-29 14:14:14 -08:00
|
|
|
|
2012-06-07 14:51:29 -07:00
|
|
|
[testenv:pep8]
|
2013-05-18 08:29:02 -07:00
|
|
|
commands = flake8
|
2012-02-29 14:14:14 -08:00
|
|
|
|
2012-06-07 14:51:29 -07:00
|
|
|
[testenv:venv]
|
2012-02-29 14:14:14 -08:00
|
|
|
commands = {posargs}
|
2012-12-24 22:50:58 -06:00
|
|
|
|
2015-04-17 12:48:39 +00:00
|
|
|
[testenv:functional]
|
|
|
|
setenv =
|
|
|
|
OS_TEST_PATH = ./glanceclient/tests/functional
|
|
|
|
|
2012-12-24 22:50:58 -06:00
|
|
|
[testenv:cover]
|
|
|
|
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
|
|
|
|
2014-07-24 17:44:22 -04:00
|
|
|
[testenv:docs]
|
|
|
|
commands=
|
|
|
|
python setup.py build_sphinx
|
|
|
|
|
2012-12-24 22:50:58 -06:00
|
|
|
[tox:jenkins]
|
|
|
|
downloadcache = ~/cache/pip
|
2013-05-18 08:29:02 -07:00
|
|
|
|
|
|
|
[flake8]
|
2013-08-05 18:03:37 -03:00
|
|
|
# H233 Python 3.x incompatible use of print operator
|
2013-06-09 11:07:27 +02:00
|
|
|
# H303 no wildcard import
|
|
|
|
# H404 multi line docstring should start with a summary
|
2015-06-05 14:54:58 +00:00
|
|
|
|
|
|
|
# TODO(kragniz) fix these and remove from the ignore list
|
|
|
|
|
|
|
|
# E265 block comment should start with '# '
|
|
|
|
# H405 multi line docstring summary not separated with an empty line
|
|
|
|
# E123 closing bracket does not match indentation of opening bracket's line
|
|
|
|
# H238 old style class declaration, use new style (inherit from `object`)
|
|
|
|
# E128 continuation line under-indented for visual indent
|
|
|
|
|
2015-05-19 19:59:06 -05:00
|
|
|
ignore = F403,F812,F821,H233,H303,H404,E265,H405,E123,H238,E128
|
2013-05-18 08:29:02 -07:00
|
|
|
show-source = True
|
2015-05-19 19:59:06 -05:00
|
|
|
exclude = .venv*,.tox,dist,*egg,build,.git,doc,*openstack/common*,*lib/python*,.update-venv
|
|
|
|
|
|
|
|
[hacking]
|
|
|
|
import_exceptions = six.moves
|