H233: Python 3.x incompatible use of print operator Python 3 support is a good feature for OpenStack service client, and we already have a patch for H233 but still ignore it in hacking check, we can enable it to avoid introducing such problem again. Change-Id: I5295ef62eef7a9f6ec7f2b67d6b68dbe2dec7067 ref: https://review.openstack.org/#/c/52841/
33 lines
702 B
INI
33 lines
702 B
INI
[tox]
|
|
envlist = py26,py27,pypy,pep8
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
usedevelop = True
|
|
install_command = pip install -U {opts} {packages}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-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 testr --coverage --testr-args='{posargs}'
|
|
|
|
|
|
[tox:jenkins]
|
|
downloadcache = ~/cache/pip
|
|
|
|
[flake8]
|
|
show-source = True
|
|
# H302: Do not import objects, only modules
|
|
ignore = H302
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,*openstack/common*,*lib/python*,*egg,build
|