summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2022-11-28 13:30:35 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2022-11-28 13:30:35 -0500
commit43d054403eb697ff96c52ee382365aac1e8d798f (patch)
tree926bd962692c96ce909ef9bac82b3d963d306c17
parenta191d2e629f55c999b37a7a795ad6fbee2807b98 (diff)
downloadoslo-db-43d054403eb697ff96c52ee382365aac1e8d798f.tar.gz
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
-rw-r--r--tox.ini2
1 files changed, 1 insertions, 1 deletions
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}