diff --git a/test-requirements.txt b/test-requirements.txt index 63862e2..c51fb0e 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -15,3 +15,6 @@ testscenarios>=0.4 # Apache-2.0/BSD oslo.config>=5.1.0 # Apache-2.0 reno>=2.5.0 # Apache-2.0 + +# Bandit security code scanner +bandit>=1.1.0 # Apache-2.0 diff --git a/tox.ini b/tox.ini index c08ab6e..163cfd8 100644 --- a/tox.ini +++ b/tox.ini @@ -11,7 +11,12 @@ deps = commands = python setup.py testr --slowest --testr-args='{posargs}' [testenv:pep8] -commands = flake8 +deps = + -r{toxinidir}/test-requirements.txt +commands = + flake8 + # Run security linter + bandit -r oslo_i18n -x tests -n5 [testenv:venv] commands = {posargs}