Merge "Configure bandit security linter"

This commit is contained in:
Zuul 2020-10-08 23:51:12 +00:00 committed by Gerrit Code Review
commit 9120374151
2 changed files with 8 additions and 0 deletions

View File

@ -13,3 +13,7 @@ coverage!=4.4,>=4.0 # Apache-2.0
nodeenv>=0.9.4 # BSD
pytest>=5.3.5 # MIT
testtools>=2.2.0 # MIT
# bandit is not included in upper-constraints, so we need to pin it here to a
# known working version
bandit==1.6.2 # Apache-2.0

View File

@ -73,3 +73,7 @@ deps =
-c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
[testenv:bandit]
deps = -r{toxinidir}/test-requirements.txt
commands = bandit -r blazar_dashboard -l -n 5 -x blazar_dashboard/test