Skip to content

Latest commit

 

History

30 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Custom pre-commit-hooks for Datacation

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages