A pre-commit hook to check your Python dependencies against safety-db.
It checks all files in your current venv or a requirements file if you supply it.
- repo: https://github.com/Galdanwing/pre-commit-hooks-safety
rev: v1.1.1
hooks:
- id: python-safety-dependencies-check-extra
args: [exclude, bleach]
You'll need to pip install safety
beforehand:
- repo: local
hooks:
- id: python-safety-dependencies-check
entry: safety
args: [check, --full-report]
language: system
files: requirements