Make pep8 *the* linting interface

According to the PTI (=Python Test Interface,
http://governance.openstack.org/reference/cti/python_cti.html), pep8
is the interface for codestyle checks. Move all tests from linters to
pep8.

This change will be followed by a change to project-config to use pep8
for testing in the gate.

Change-Id: I1a48f4b1e0b0950640192bcfc55121619a844b50
This commit is contained in:
Andreas Jaeger 2016-02-10 21:39:04 +01:00 committed by Andreas Jaeger
parent 571f4b97f6
commit 8ad0b11065

12
tox.ini
View File

@ -1,7 +1,7 @@
[tox]
minversion = 1.6
skipsdist = True
envlist = py34,py27,linters,pypy
envlist = py34,py27,pep8,pypy
[testenv]
usedevelop=True
@ -16,7 +16,17 @@ commands =
find . -type f -name "*.pyc" -delete
python setup.py test --slowest --testr-args='{posargs}'
[testenv:pep8]
commands =
{toxinidir}/tools/run-bashate.sh
flake8 {posargs}
{toxinidir}/tools/validate-all-json.sh
{toxinidir}/tools/validate-all-yaml.sh
{toxinidir}/tools/validate-all-maintainer.sh
[testenv:linters]
# temporary environment until infra jobs are changed.
# TODO(jaegerandi): remove this
commands =
{toxinidir}/tools/run-bashate.sh
flake8 {posargs}