From bcf895cbe383632dfb7f9e2770203a56438473ad Mon Sep 17 00:00:00 2001 From: Kim Bao Long Date: Thu, 23 Aug 2018 17:13:54 +0700 Subject: [PATCH] Add B303 into list of skipped bandit plugins Blacklist call of hashlib.sha1 was blacklisted in bandit with [1] and it is now added to list of skipped tests in Neutron Client. [1] PyCQA/bandit@35e3544 Change-Id: I8322d0666528323df8b1214306be4b80c4b0777a --- tox.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index d534b0cb6..8d6eb99e6 100644 --- a/tox.ini +++ b/tox.ini @@ -65,8 +65,9 @@ import-order-style = pep8 enable-extensions=H904 [testenv:bandit] +# B303: blacklist calls: md5, sha1 deps = -r{toxinidir}/test-requirements.txt -commands = bandit -r neutronclient -x tests -n5 +commands = bandit -r neutronclient -x tests -n5 -s B303 [testenv:lower-constraints] basepython = python3