Migrate bandit options to pyproject.toml

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

Change-Id: I84450593a75ccbc957b98595f672320bb897009c
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
Takashi Kajinami
2025-10-02 23:50:16 +09:00
parent 788bd1e700
commit cefd59d819
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', 'B404,B603']
args: ['-c', 'pyproject.toml']
- repo: https://github.com/asottile/pyupgrade
rev: v3.20.0
hooks:

View File

@@ -39,3 +39,7 @@ privsep-helper = "oslo_privsep.daemon:helper_main"
[tool.setuptools]
packages = ["oslo_privsep"]
[tool.bandit]
exclude_dirs = ["tests"]
skips = ['B404', 'B603']