6f76039fa2
Remove the specification in tox.ini that _ is a builtin so that it will no longer assume that _ does not need to be imported. This helps ensure that the _ from i18n is used. Activating this check did not flag any violations. Change-Id: I077b9b2060e618823ef6dd6f95ce9fe7dcc52a06
51 lines
1.1 KiB
INI
51 lines
1.1 KiB
INI
[tox]
|
|
envlist = py33,py34,py26,py27,pep8
|
|
|
|
[testenv]
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
OS_TEST_TIMEOUT=30
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:cover]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
commands =
|
|
python setup.py testr --coverage
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv:py33]
|
|
deps = -r{toxinidir}/requirements-py3.txt
|
|
-r{toxinidir}/test-requirements-py3.txt
|
|
|
|
[testenv:py34]
|
|
deps = -r{toxinidir}/requirements-py3.txt
|
|
-r{toxinidir}/test-requirements-py3.txt
|
|
|
|
[testenv:amqp1]
|
|
# test AMQP 1.0 driver, requires QPID Proton developer packages
|
|
deps = -r{toxinidir}/amqp1-requirements.txt
|
|
{[testenv]deps}
|
|
|
|
[testenv:py27-rabbit]
|
|
setenv = TRANSPORT_URL=rabbit://guest:guest@localhost
|
|
|
|
[flake8]
|
|
show-source = True
|
|
ignore = H237,H402,H405,H904
|
|
exclude = .tox,dist,doc,*.egg,build,__init__.py
|
|
|
|
[hacking]
|
|
import_exceptions =
|
|
oslo.messaging._i18n
|
|
six.moves
|