diff options
| author | Andreas Jaeger <aj@suse.com> | 2016-02-10 21:39:04 +0100 |
|---|---|---|
| committer | Andreas Jaeger <jaegerandi@gmail.com> | 2016-02-11 09:55:28 +0000 |
| commit | 8ad0b110657b2be1347b467236a74ed96aae0d02 (patch) | |
| tree | fa19c6bc39ad8859554aa71b89908e6aa926ac7f | |
| parent | 571f4b97f62142e2d18438631548e2ae10d9044e (diff) | |
| download | kolla-8ad0b110657b2be1347b467236a74ed96aae0d02.tar.gz kolla-8ad0b110657b2be1347b467236a74ed96aae0d02.zip | |
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
| -rw-r--r-- | tox.ini | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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} |
