Skip to main content

Random assorted pre-commit hooks

Project description

Build Status codecov pre-commit.ci status

MadForHooks

Random assorted pre-commit hooks.

Usage

Put this in the repos section of your .pre-commit-config.yaml file:

-   repo: https://github.com/MarcoGorelli/madforhooks
    rev: 0.2.1
    hooks:
    -   id: conda-env-sorter
    -   id: no-print-statements

Or, from the commandline:

pip install madforhooks
python -m madforhooks.no_print_statements file1.py file2.py file3.py

Hooks available

conda-env-sorter

Sort the dependencies in your conda environment file(s).

no-print-statements

Raise if print statements are found (unless they have file=).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

madforhooks-0.2.1.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

madforhooks-0.2.1-py2.py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page