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.3.0
hooks:
- id: conda-env-sorter
- id: no-print-statements
- id: check-execution-order
Or, from the commandline:
pip install madforhooks
python -m madforhooks.check_execution_order file1.ipynb file2.ipynb file3.ipynb
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=
).
check-execution-order
Raise if notebook cells were executed out-of-order. Use --strict
to ensure
strict monotonicity.
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.3.0.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for madforhooks-0.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e68282100cd1ebb55208094f73dbffb8aacf632b3dfe2075bdd5b47afac8bb49 |
|
MD5 | bef5c0ba16eac158e6205a1b4ecbc1fc |
|
BLAKE2b-256 | 788e080ed906ca4623a31d398a65bc1ab58b0115cb4f349f6259ad64e5bd9cc9 |