From a010cde94c6e70ce3fb87cede489936af1b90a98 Mon Sep 17 00:00:00 2001 From: "ChangBo Guo(gcb)" Date: Tue, 1 Mar 2016 11:29:05 +0800 Subject: [PATCH] Enable bandit in gate Run security linter bandit as part of pep8. Pep8 is the usual linter target and thus let's use it there instead of starting another short-running job to enable it. Change-Id: I8b5dc551b51ea5b92d755927d811f9b60e87e4d2 --- tox.ini | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tox.ini b/tox.ini index 7f350393..8ed4656a 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 1.6 -envlist = py34,py27,pep8,bandit +envlist = py34,py27,pep8 [testenv] deps = -r{toxinidir}/test-requirements.txt @@ -10,7 +10,10 @@ commands = coverage report --show-missing [testenv:pep8] -commands = flake8 +commands = + flake8 + # Run security linter + bandit -r oslo_log -n5 [testenv:venv] commands = {posargs} @@ -24,7 +27,6 @@ commands = coverage report --show-missing [testenv:bandit] -deps = -r{toxinidir}/test-requirements.txt commands = bandit -r oslo_log -n5 [flake8]