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:
parent
571f4b97f6
commit
8ad0b11065
12
tox.ini
12
tox.ini
@ -1,7 +1,7 @@
|
|||||||
[tox]
|
[tox]
|
||||||
minversion = 1.6
|
minversion = 1.6
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
envlist = py34,py27,linters,pypy
|
envlist = py34,py27,pep8,pypy
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
usedevelop=True
|
usedevelop=True
|
||||||
@ -16,7 +16,17 @@ commands =
|
|||||||
find . -type f -name "*.pyc" -delete
|
find . -type f -name "*.pyc" -delete
|
||||||
python setup.py test --slowest --testr-args='{posargs}'
|
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]
|
[testenv:linters]
|
||||||
|
# temporary environment until infra jobs are changed.
|
||||||
|
# TODO(jaegerandi): remove this
|
||||||
commands =
|
commands =
|
||||||
{toxinidir}/tools/run-bashate.sh
|
{toxinidir}/tools/run-bashate.sh
|
||||||
flake8 {posargs}
|
flake8 {posargs}
|
||||||
|
Loading…
Reference in New Issue
Block a user