Random assorted pre-commit hooks
Project description
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)
Built Distribution
Close
Hashes for madforhooks-0.2.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0461b652a2abbb3aba15241ae140e64868ddd433a2ff5aff6327f3d302875296 |
|
MD5 | 83c6bdbbaed08d133d2e2d7073389b16 |
|
BLAKE2b-256 | 3033a1efb5c3c5841ea1fa67a69db770da3d287b5917513ecd3a8c5361dafc40 |