Add bandit scanning

- Add bandit target in tox.ini
- Fix source issue preventing bandit from completing
- Currently no found issues

Change-Id: Iaf264b3af77ff78843462137e44ee029efc03434
This commit is contained in:
Scott Hussey 2017-09-12 13:07:28 -05:00
parent 689445280e
commit 864f0d35a5
3 changed files with 4 additions and 1 deletions

View File

@ -27,7 +27,6 @@ class DrydockSession(object):
def __init__(self,
host,
*,
port=None,
scheme='http',
token=None,

View File

@ -7,3 +7,4 @@ oslo.versionedobjects[fixtures]>=1.23.0
oslo.config[fixtures]
yapf
flake8
bandit>=1.1.0

View File

@ -32,6 +32,9 @@ commands = oslopolicy-sample-generator --config-file etc/drydock/drydock-policy-
commands = flake8 \
{posargs}
[testenv:bandit]
commands = bandit -r drydock_provisioner -n 5
[flake8]
ignore=E302,H306,H304,D101,D102,D103,D104
exclude= venv,.venv,.git,.idea,.tox,*.egg-info,*.eggs,bin,dist,./build/