Remove unused bandit target

This has been unused since bandit was moved to PyCQA organization.

Also maintain bandit options in pyproject.toml so that these can be
used by different tools more easily.

Change-Id: I7d16d6e58666a943677a18fcc19f66c7bb7a2c8c
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
Takashi Kajinami
2025-10-03 00:59:44 +09:00
parent 98b5b4c485
commit 78b393e38d
3 changed files with 4 additions and 9 deletions

View File

@@ -32,7 +32,7 @@ repos:
rev: '1.8.3'
hooks:
- id: bandit
args: ["-x", "keystone/tests/*,devstack/*"]
args: ['-c', 'pyproject.toml']
- repo: https://opendev.org/openstack/hacking
rev: 7.0.0
hooks:

View File

@@ -180,3 +180,6 @@ packages = [
"etc/keystone" = [
"etc/sso_callback_template.html",
]
[tool.bandit]
exclude_dirs = ['keystone/tests/*', 'devstack/*']

View File

@@ -35,14 +35,6 @@ commands =
passenv = FAST8_NUM_COMMITS
allowlist_externals = {toxinidir}/tools/fast8.sh
[testenv:bandit]
# NOTE(browne): This is required for the integration test job of the bandit
# project. Please do not remove.
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
commands = bandit -r keystone -x 'keystone/tests/*'
[testenv:cover]
# Also do not run test_coverage_ext tests while gathering coverage as those
# tests conflict with coverage.