diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ea4e0fa..33ccf15 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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: diff --git a/pyproject.toml b/pyproject.toml index 7716298..f9a2e00 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -64,3 +64,6 @@ osprofiler = "osprofiler.cmd.shell:main" packages = [ "osprofiler" ] + +[tool.bandit] +exclude_dirs = ["tests"]