From 6f6380ffc8b97965ecc14ec03bead0bea5bc2b57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Nov=C3=BD?= Date: Mon, 17 Oct 2016 20:58:06 +0200 Subject: [PATCH] Added Bandit Change-Id: I9e3c548c23e2dc891cb7b1409b1df235706bbb17 --- test-requirements.txt | 1 + tox.ini | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/test-requirements.txt b/test-requirements.txt index 1b4dc1e..8e1945c 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -10,3 +10,4 @@ coverage>=3.6 # Apache-2.0 #discover #python-subunit>=0.0.18 sphinx!=1.3b1,<1.4,>=1.2.1 # BSD +bandit>=1.1.0 # Apache-2.0 diff --git a/tox.ini b/tox.ini index 3983061..83fde7b 100644 --- a/tox.ini +++ b/tox.ini @@ -29,6 +29,10 @@ setenv = VIRTUAL_ENV={envdir} commands = flake8 swauth test flake8 --filename=swauth* bin + bandit -r swauth -s B110,B309 + +[testenv:bandit] +commands = bandit -r swauth -s B110,B309 [testenv:venv] commands = {posargs}