A pre-commit hook to check your Python dependencies against safety-db
Python
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
pre_commit_hooks v1.0.10 Jan 19, 2017
tests v1.0.10 Jan 19, 2017
.gitignore Initial version Nov 7, 2016
.pre-commit-config.yaml v1.1.0 Jan 26, 2017
.pre-commit-hooks.yaml hooks.yaml -> .pre-commit-hooks.yaml - close #3 Jan 26, 2017
.pylintrc Initial version Nov 7, 2016
.travis.yml Adding .travis.yml Jan 19, 2017
README.md v1.1.0 Jan 26, 2017
dev-requirements.txt Initial version Nov 7, 2016
hooks.yaml v1.0.10 Jan 19, 2017
pytest.ini v1.0.9 Nov 9, 2016
setup.py v1.1.0 Jan 26, 2017

README.md

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

It checks all files containing requirements in their name in the repo.

Usage

-   repo: https://github.com/Lucas-C/pre-commit-hooks-safety
    sha: v1.1.0
    hooks:
    -   id: python-safety-dependencies-check

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