Merge "Migrate bandit options to pyproject.toml"

This commit is contained in:
Zuul
2025-10-23 23:52:17 +00:00
committed by Gerrit Code Review
2 changed files with 5 additions and 1 deletions

View File

@@ -39,7 +39,7 @@ repos:
rev: 1.8.3
hooks:
- id: bandit
args: ['-x', 'tests', '-s', 'B101,B311,B320']
args: ['-c', 'pyproject.toml']
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.1
hooks:

View File

@@ -28,3 +28,7 @@ ignore = [
[tool.ruff.lint.mccabe]
# Flag errors (`C901`) whenever the complexity level exceeds 5.
max-complexity = 20
[tool.bandit]
exclude_dirs = ['tests']
skips = ['B101', 'B311', 'B320']