Migrate bandit options to pyproject.toml

... so that these options can be used by different tools than
tox/pre-commit more easily.

Change-Id: If4d3c80bb0824594c671d89feef868f8cd059ceb
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
Takashi Kajinami
2025-10-02 23:57:49 +09:00
parent 59b3e4cd56
commit 280e826302
2 changed files with 4 additions and 1 deletions

View File

@@ -21,7 +21,7 @@ repos:
rev: 1.8.6
hooks:
- id: bandit
args: ['-x', 'tests']
args: ['-c', 'pyproject.toml']
- repo: https://github.com/asottile/pyupgrade
rev: v3.20.0
hooks:

View File

@@ -34,3 +34,6 @@ Repository = "https://opendev.org/openstack/oslo.vmware"
packages = [
"oslo_vmware"
]
[tool.bandit]
exclude_dirs = ["tests"]