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 details)
Built Distribution
File details
Details for the file madforhooks-0.3.0.tar.gz
.
File metadata
- Download URL: madforhooks-0.3.0.tar.gz
- Upload date:
- Size: 4.8 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28b1ea0e0fe972cae1aa5cf9e2bcd7d488078b6c11326a3cdb042f5808d48f44 |
|
MD5 | de452d2d00e5f2e23d41ab47ba6cf776 |
|
BLAKE2b-256 | 6d59552bc247e2630e8c38e8af214b34bb22851ef32fff77a2c90b7582e4c5e2 |
Provenance
File details
Details for the file madforhooks-0.3.0-py2.py3-none-any.whl
.
File metadata
- Download URL: madforhooks-0.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 5.4 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | e68282100cd1ebb55208094f73dbffb8aacf632b3dfe2075bdd5b47afac8bb49 |
|
MD5 | bef5c0ba16eac158e6205a1b4ecbc1fc |
|
BLAKE2b-256 | 788e080ed906ca4623a31d398a65bc1ab58b0115cb4f349f6259ad64e5bd9cc9 |