Added hacking.py support to pep8 portion of tox

Usage: tox hacking
Once we have the source compliant we can merge this with the pep8 task.

There is a known problem with stevedore's dynamic module loading.

Change-Id: Ibfff87d85ecc81b1ce6dd994a135ab30b75d4d1e
This commit is contained in:
Sandy Walsh
2013-02-04 10:39:35 -04:00
parent a004624dcc
commit 42ca96664e
2 changed files with 605 additions and 2 deletions

14
tox.ini
View File

@@ -21,12 +21,22 @@ commands = {toxinidir}/wrap_nosetests.sh --no-path-adjustment --with-coverage --
[testenv:pep8]
deps = pep8==1.3.3
commands = pep8 --repeat --ignore=E125 --show-source ceilometer setup.py bin/ceilometer-agent-central bin/ceilometer-agent-compute bin/ceilometer-collector bin/ceilometer-api tests
commands =
pep8 --repeat --ignore=E125 --show-source ceilometer setup.py bin/ceilometer-agent-central bin/ceilometer-agent-compute bin/ceilometer-collector bin/ceilometer-api tests
[testenv:hacking]
deps = pep8==1.3.3
commands =
python tools/hacking.py --doctest
python tools/hacking.py --ignore=E12,E711,E721,E712,N403,N404 --show-source \
--exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg .
python tools/hacking.py --ignore=E12,E711,E721,E712,N403,N404 --show-source \
--filename=ceilometer* bin
[testenv:venv]
deps = -r{toxinidir}/tools/test-requires
-r{toxinidir}/tools/pip-requires
sphinxcontrib-httpdomain
sphinxcontrib-httpdomain
commands = {posargs}
[testenv:py26-folsom]