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. Change-Id: If50b7471112151245d383b4a1d0056ce9041adf2 Depends-On: I9346e4bf8c3a50de088c6a157f0d871c0a9333a1
This commit is contained in:
11
tox.ini
11
tox.ini
@@ -1,7 +1,7 @@
|
|||||||
[tox]
|
[tox]
|
||||||
minversion = 1.6
|
minversion = 1.6
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
envlist = py34,py27,linters,releasenotes
|
envlist = py34,py27,pep8,releasenotes
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
@@ -16,18 +16,11 @@ commands = find . -type f -name "*.pyc" -delete
|
|||||||
python setup.py testr --slowest --testr-args='{posargs}'
|
python setup.py testr --slowest --testr-args='{posargs}'
|
||||||
whitelist_externals = find
|
whitelist_externals = find
|
||||||
|
|
||||||
[testenv:linters]
|
[testenv:pep8]
|
||||||
commands =
|
commands =
|
||||||
flake8
|
flake8
|
||||||
bandit -c bandit.yaml -r keystoneclient -n5 -p gate
|
bandit -c bandit.yaml -r keystoneclient -n5 -p gate
|
||||||
|
|
||||||
[testenv:pep8]
|
|
||||||
whitelist_externals =
|
|
||||||
echo
|
|
||||||
commands =
|
|
||||||
{[testenv:linters]commands}
|
|
||||||
echo "Use tox -e linters instead"
|
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user