Merge "Migrate bandit options to pyproject.toml"

This commit is contained in:
Zuul
2025-10-08 17:17:49 +00:00
committed by Gerrit Code Review
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', '-s', 'B311,B404,B603,B606']
args: ['-c', 'pyproject.toml']
- repo: https://github.com/asottile/pyupgrade
rev: v3.20.0
hooks:

View File

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