Merge "Use bandit block in tox.ini"

This commit is contained in:
Zuul 2019-10-14 22:50:27 +00:00 committed by Gerrit Code Review
commit 25c31fe6d2
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ testtools>=2.2.0 # MIT
testresources>=2.0.0 # Apache-2.0/BSD
testscenarios>=0.4 # Apache-2.0/BSD
doc8>=0.6.0 # Apache-2.0
bandit>=1.1.0 # Apache-2.0
bandit!=1.6.0,>=1.1.0 # Apache-2.0
tempest>=17.1.0 # Apache-2.0
# Required for pep8 - doc8 tests
sphinx!=1.6.6,!=1.6.7,>=1.6.2,<2.0.0;python_version=='2.7' # BSD

View File

@ -78,7 +78,7 @@ commands = flake8
doc/source octavia CONSTITUTION.rst HACKING.rst README.rst \
TESTING.rst
# Run security linter
bandit -r octavia -ll -ii -x 'octavia/tests/*'
{[testenv:bandit]commands}
# Make sure specs follow our template
find . -type f -name "*.pyc" -delete
python -m unittest specs-tests.test_titles
@ -148,7 +148,7 @@ commands =
[testenv:bandit]
basepython = python3
commands = bandit -r octavia -ll -ii -x octavia/tests {posargs}
commands = bandit -r octavia -ll -ii -x tests
[flake8]
# [H104]: Empty file with only comments