Migrate bandit options to pyproject.toml

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

Change-Id: I47528c30c03f19a7c28043f9cb6a610db8d5261e
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
Takashi Kajinami
2025-10-02 23:41:38 +09:00
parent f9e06a7efa
commit 6183804df5
2 changed files with 5 additions and 1 deletions

View File

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

View File

@@ -47,3 +47,7 @@ eventlet = [
packages = [ packages = [
"oslo_concurrency" "oslo_concurrency"
] ]
[tool.bandit]
exclude_dirs = ["tests"]
skips = ['B311', 'B404', 'B603', 'B606']