diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2019-05-25 10:17:21 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2019-05-25 11:35:21 +0200 |
commit | 3bb4eab49dd70644a862f58f8222755ade118299 (patch) | |
tree | d6518e6e3b081755891bbd782a4ae263a3d4371e /tox.ini | |
parent | 3aa980445f887fca83ada5e8a67dfc56931b54b0 (diff) |
Run bandit when verifying changes
It reports only MEDIUM issues or higher like nova [1]
[1] https://github.com/openstack/nova/blob/master/tox.ini#L221
Change-Id: I1302b28ed1dcc4e074c6c6f2aa5e915c88eb03f4
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 11669ed5216c94f3420969aa5b31e0687af33f18)
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -1,5 +1,5 @@ [tox] -envlist = pep8,pylint,yamllint,ansiblelint,bashate,py27 +envlist = pep8,pylint,yamllint,ansiblelint,bashate,py27,bandit [testenv] usedevelop = True @@ -23,8 +23,7 @@ commands = flake8 [testenv:pylint] basepython = python2.7 -commands = - pylint --disable=locally-disabled --reports=n functest_kubernetes +commands = pylint --disable=locally-disabled --reports=n functest_kubernetes [testenv:yamllint] basepython = python2.7 @@ -36,8 +35,11 @@ commands = [testenv:ansiblelint] basepython = python2.7 -commands = - ansible-lint ansible/site.yml +commands = ansible-lint ansible/site.yml + +[testenv:bandit] +basepython = python2.7 +commands = bandit -r functest_kubernetes -x tests -n 5 -ll [testenv:py36] commands = nosetests functest_kubernetes |