From 43d054403eb697ff96c52ee382365aac1e8d798f Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 28 Nov 2022 13:30:35 -0500 Subject: skip bandit on oslo_db/tests the bandit command excludes the folder named "tests" but does not seem to exclude where the tests actually are here, which is oslo_db/tests. add this folder, as we have "assert" statements as well as pickle use in our test suite, which bandit disapproves of. Change-Id: I63ad4fbbd7fa72e7a4d8ebd458d323516f997424 --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index cfe61bb..942701b 100644 --- a/tox.ini +++ b/tox.ini @@ -29,7 +29,7 @@ commands = commands = pre-commit run -a # Run security linter - bandit -r oslo_db -x tests -n5 --skip B105,B311 + bandit -r oslo_db -x tests -x oslo_db/tests -n5 --skip B105,B311 [testenv:venv] commands = {posargs} -- cgit v1.2.1