Migrate bandit options to pyproject.toml

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

Change-Id: I1df4789cdd136012fd7ae870c6e26fde9e3c7c3c
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
Takashi Kajinami
2025-10-02 23:57:02 +09:00
parent 40629aea2a
commit a2b7865dda
2 changed files with 5 additions and 1 deletions

View File

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

View File

@@ -37,3 +37,7 @@ Repository = "https://opendev.org/openstack/oslo.versionedobjects"
packages = [
"oslo_versionedobjects"
]
[tool.bandit]
exclude_dirs = ["tests"]
skips = ['B303']