Move bandit to pep8

The bandit gate is passing, let's make it voting.

Since bandit is a security linter, add it to the linter target - called
pep8 - and run it there. This will save the CI systems spawning an extra
test machine for this.

This is the recommended approach in OpenStack CI to run all linters as
part of pep8 target - see also the consistent testing interface for
python (http://governance.openstack.org/reference/cti/python_cti.html)
that associates pep8 with "Codestyle checks".

Change-Id: Id65a50c35723b79e9b92952d138e60ee998c341c
This commit is contained in:
Andreas Jaeger 2016-09-02 14:57:08 +02:00
parent b6a52a7d4f
commit d7146de5e8

View File

@ -37,8 +37,11 @@ commands = oslo_debug_helper {posargs}
[testenv:pep8]
commands = flake8
# RST linter
doc8 specs doc/source octavia \
CONSTITUTION.rst HACKING.rst README.rst
# Run security linter
bandit-baseline -r octavia -ll -ii
[testenv:docs]
commands =