From 0f73e7ca9fa0deae2c88b0e9d7b3237397d92dda Mon Sep 17 00:00:00 2001 From: Gage Hugo Date: Tue, 21 Aug 2018 15:51:08 -0500 Subject: [PATCH] Add bandit python security scanning to pep8 This change adds bandit python security code scanning to the pep8 zuul check. Change-Id: I8b6c52bd3fae87c5b49f3cde8bb9e63526155973 --- test-requirements.txt | 1 + tox.ini | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/test-requirements.txt b/test-requirements.txt index 9085c07b..a08c27ae 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -8,3 +8,4 @@ coverage!=4.4,>=4.0 # Apache-2.0 nose>=1.3.7 # LGPL nosexcover>=1.0.10 # BSD oslotest>=3.2.0 # Apache-2.0 +bandit>=1.5 # Apache-2.0 diff --git a/tox.ini b/tox.ini index a09822f2..ea9abf10 100644 --- a/tox.ini +++ b/tox.ini @@ -22,8 +22,12 @@ commands = [testenv:pep8] basepython = python3 -commands = flake8 {posargs} - check-uuid --package patrole_tempest_plugin.tests.api +deps = + -r{toxinidir}/test-requirements.txt +commands = + flake8 {posargs} + bandit -r patrole_tempest_plugin -x patrole_tempest_plugin/tests -n 5 + check-uuid --package patrole_tempest_plugin.tests.api [testenv:uuidgen] basepython = python3