diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2fcb4d4c6f..45f34d6748 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -90,7 +90,7 @@ repos: - id: bandit name: bandit description: "Bandit is a tool for finding common security issues in Python code" - entry: bash -c 'bandit -q -lll -x '*_test.py,./contrib/' -r .' + entry: bash -c 'bandit -q -lll -x '*_test.py,./contrib/,./.venv/' -r .' language: system files: '.*\.py' @@ -103,7 +103,6 @@ repos: - id: vulture name: vulture description: "Vulture finds unused code in Python programs." - entry: bash -c 'vulture --exclude "contrib" --min-confidence 100 .' - exclude: 'api/src/backend/' + entry: bash -c 'vulture --exclude "contrib,.venv,api/src/backend/api/tests/,api/src/backend/conftest.py,api/src/backend/tasks/tests/" --min-confidence 100 .' language: system files: '.*\.py'