Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.14 KB

File metadata and controls

34 lines (23 loc) · 1.14 KB

pre-commit-hooks

Custom pre-commit hooks for Datacation to check Python dependency vulnerabilities managed by uv.

Hooks

check-uv-lock-vulnerabilities

Checks your uv.lock for vulnerabilities using pip-audit.

check-uv-lock-vulnerabilities-daily

Checks your uv.lock for vulnerabilities, but only if the last successful run was more than 24 hours ago (configurable).

Usage

Add this repo to your .pre-commit-config.yaml:

- repo: https://github.com/datacation/pre-commit-hooks
  rev: <commit-or-tag>
  hooks:
    - id: check-uv-lock-vulnerabilities
    # or
    - id: check-uv-lock-vulnerabilities-daily
      args: ["24"] # change this number to adjust the interval in hours, ex. weekly: 168