Skip to content

Commit

Permalink
Merge pull request #179 from cisagov/improvement/add_pip-audit_pre-co…
Browse files Browse the repository at this point in the history
…mmit_hook

Add a pre-commit hook to run `pip-audit`
  • Loading branch information
mcdonnnj authored Sep 25, 2024
2 parents 28dc4ce + 045a998 commit 5801cec
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,18 @@ repos:
rev: v1.10.0
hooks:
- id: mypy
- repo: https://github.com/pypa/pip-audit
rev: v2.7.3
hooks:
- id: pip-audit
args:
# Add any pip requirements files to scan
- --requirement
- requirements-dev.txt
- --requirement
- requirements-test.txt
- --requirement
- requirements.txt
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.2
hooks:
Expand Down

0 comments on commit 5801cec

Please sign in to comment.