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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file madforhooks-0.2.1.tar.gz.

File metadata

  • Download URL: madforhooks-0.2.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.10

File hashes

Hashes for madforhooks-0.2.1.tar.gz
Algorithm Hash digest
SHA256 d2973f2861ce14aa723efbcbfe7d794b2794be96804c7022bb931505435fc9ea
MD5 f2b59e111a606bc593303d64d6f0cf4a
BLAKE2b-256 8f3451c7d38fc9fef69b1b3353a3365da94c5760438e286445da4f108c67cded

See more details on using hashes here.

Provenance

File details

Details for the file madforhooks-0.2.1-py2.py3-none-any.whl.

File metadata

  • Download URL: madforhooks-0.2.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.10

File hashes

Hashes for madforhooks-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0461b652a2abbb3aba15241ae140e64868ddd433a2ff5aff6327f3d302875296
MD5 83c6bdbbaed08d133d2e2d7073389b16
BLAKE2b-256 3033a1efb5c3c5841ea1fa67a69db770da3d287b5917513ecd3a8c5361dafc40

See more details on using hashes here.

Provenance

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