diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1dd11fd9..5e269674 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,7 +21,7 @@ repos: rev: 1.8.6 hooks: - id: bandit - args: ['-x', 'tests'] + args: ['-c', 'pyproject.toml'] - repo: https://github.com/PyCQA/doc8 rev: v2.0.0 hooks: diff --git a/pyproject.toml b/pyproject.toml index a948fd3d..cff60820 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,3 +45,6 @@ threading = [ [tool.setuptools] packages = ["oslo_service"] + +[tool.bandit] +exclude_dirs = ["tests"]