2012-01-10 17:44:27 -08:00
|
|
|
[tox]
|
2013-06-01 19:34:17 -05:00
|
|
|
envlist = py26,py27,py33,pep8
|
2012-01-10 17:44:27 -08:00
|
|
|
|
|
|
|
[testenv]
|
2012-02-29 09:39:03 -08:00
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
2013-05-30 13:36:22 +08:00
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
2012-06-28 07:45:35 -07:00
|
|
|
setuptools_git>=0.4
|
2013-03-07 12:41:30 -05:00
|
|
|
commands =
|
2013-03-10 15:23:46 -07:00
|
|
|
python setup.py testr --slowest --testr-args='{posargs}'
|
2012-06-08 19:46:37 -04:00
|
|
|
|
|
|
|
[tox:jenkins]
|
|
|
|
sitepackages = True
|
|
|
|
downloadcache = ~/cache/pip
|
2012-01-10 17:44:27 -08:00
|
|
|
|
|
|
|
[testenv:pep8]
|
2013-05-17 02:18:56 +00:00
|
|
|
commands =
|
|
|
|
flake8
|
2012-01-25 01:23:12 -08:00
|
|
|
|
2012-11-30 16:03:41 +08:00
|
|
|
[testenv:i18n]
|
2013-07-03 19:39:46 -04:00
|
|
|
commands = python ./tools/check_i18n.py ./neutron ./tools/i18n_cfg.py
|
2012-11-30 16:03:41 +08:00
|
|
|
|
2012-01-25 01:23:12 -08:00
|
|
|
[testenv:cover]
|
2013-03-10 15:23:46 -07:00
|
|
|
commands =
|
2013-05-02 09:37:09 -04:00
|
|
|
python setup.py testr --coverage --testr-args='{posargs}'
|
2012-01-10 17:44:27 -08:00
|
|
|
|
2012-06-08 19:46:37 -04:00
|
|
|
[testenv:venv]
|
2012-02-29 09:39:03 -08:00
|
|
|
commands = {posargs}
|
2013-05-17 02:18:56 +00:00
|
|
|
|
|
|
|
[flake8]
|
|
|
|
# E711/E712 comparison to False should be 'if cond is False:' or 'if not cond:'
|
|
|
|
# query = query.filter(Component.disabled == False)
|
|
|
|
# E125 continuation line does not distinguish itself from next logical line
|
2013-08-07 03:48:29 +09:00
|
|
|
# H233 Python 3.x incompatible use of print operator
|
2013-05-17 02:18:56 +00:00
|
|
|
# H301 one import per line
|
|
|
|
# H302 import only modules
|
|
|
|
# TODO(marun) H404 multi line docstring should start with a summary
|
2013-08-07 03:48:29 +09:00
|
|
|
ignore = E711,E712,E125,H233,H301,H302,H404
|
2013-05-17 02:18:56 +00:00
|
|
|
show-source = true
|
|
|
|
builtins = _
|
|
|
|
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools
|