Skip to content

A pre-commit hook to check your Python dependencies against safety-db

License

Notifications You must be signed in to change notification settings

Galdanwing/pre-commit-hooks-safety

 
 

Repository files navigation

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.

Usage

-   repo: https://github.com/Galdanwing/pre-commit-hooks-safety
    rev: v1.1.1
    hooks:
    -   id: python-safety-dependencies-check-extra
        args: [exclude, bleach]

Alternative local hook

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

About

A pre-commit hook to check your Python dependencies against safety-db

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%