Exclude tests directory from bandit check

... because these are not used in actual deployments.

Change-Id: Ib089a389080d8aa8943e3ebb44563859414a69f9
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
Takashi Kajinami
2025-10-02 23:58:38 +09:00
parent e58849f554
commit 598db3947e
2 changed files with 4 additions and 0 deletions

View File

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

View File

@@ -64,3 +64,6 @@ osprofiler = "osprofiler.cmd.shell:main"
packages = [
"osprofiler"
]
[tool.bandit]
exclude_dirs = ["tests"]