8b37289f68
This adds hacking.py, based on the one in nova, to wrap around pep8 and enforce more stringent checks on tempest. This adds the rules that nova is currently enforcing on incoming commits. The rules that pep8 is ignoring are copied from the pep8 check on jenkins. The HACKING file was also updated to indicate the inclusion of the new rules that are being enforced. Change-Id: I5c85829ee15d4264d8de2d9f0207d9dd3dfbbff2
19 lines
540 B
INI
19 lines
540 B
INI
[tox]
|
|
envlist = pep8
|
|
|
|
[testenv]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
NOSE_WITH_OPENSTACK=1
|
|
NOSE_OPENSTACK_COLOR=1
|
|
NOSE_OPENSTACK_RED=15
|
|
NOSE_OPENSTACK_YELLOW=3
|
|
NOSE_OPENSTACK_SHOW_ELAPSED=1
|
|
NOSE_OPENSTACK_STDOUT=1
|
|
deps = -r{toxinidir}/tools/pip-requires
|
|
-r{toxinidir}/tools/test-requires
|
|
commands = nosetests {posargs}
|
|
|
|
[testenv:pep8]
|
|
deps = pep8==1.3.3
|
|
commands = python tools/hacking.py --ignore=N4,E121,E122,E125,E126 --repeat --show-source --exclude=.venv,.tox,dist,doc,openstack .
|