diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3f2de3397..14024de73 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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: diff --git a/pyproject.toml b/pyproject.toml index 254c3c495..a6daac72d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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']