feat: added pip-audit to precommit

This commit is contained in:
Alec Schmidt
2025-04-15 06:54:24 +00:00
committed by alec.schmidt
parent 140dbb1989
commit 276e4ced5c

View File

@@ -4,4 +4,15 @@ repos:
hooks: hooks:
- id: flake8 - id: flake8
additional_dependencies: [] additional_dependencies: []
args: [--config=tox.ini] # Use the same config as in CI args: [--config=tox.ini] # Use the same config as in CI
- repo: https://github.com/pypa/pip-audit
rev: v2.9.0
hooks:
- id: pip-audit
args: ["./src"]
ci:
# Leave pip-audit to only run locally and not in CI
# pre-commit.ci does not allow network calls
skip: [pip-audit]