Personal Git Hooks
This directory contains some scripts designed for use as git hooks. They should have a pretty simple command line interface (see docstrings for details) so usage should be self-explanatory.
Installation
You can install the entire hook package with pip install metovhooks.
Usage
You can run the scripts manually in your shell. For example, protect_branch master will exit with code 1 if the current git branch is master and exit with 0 if not (if your shell does not display exit codes, you can check the code with echo $?).
Of course, it isn't very useful to run these manually. You can just type git status and see what the current branch is. But these scripts are intended to be used as git hooks. This is why the commands themselves are verbose - you'd be reading them much more often than typing them. However, you still have the option of just typing them manually -- a useful thing when troubleshooting.
If you're looking for a tool to help you manage git hooks, check out yaghm. This repository also contains a yaghm config defining the hooks I use when developing it. This is optional; it won't actually do anything until you install yaghm and enable them.
Metadata
Release files for metovhooks 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| metovhooks-0.1.8.tar.gz | 4.3 kB | Without provenance | Details for metovhooks-0.1.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| metovhooks-0.1.8-py3-none-any.whl | Python 3 | none | any | Details for metovhooks-0.1.8-py3-none-any.whl |
Total release size: 9.5 kB
Release files / metovhooks-0.1.8.tar.gz
| Download URL | metovhooks-0.1.8.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2aa5ef42ce9795ee01ae988fec573760d404b7c6b4a2f9d32c14db624de065ac
|
|
BLAKE2b-256 checksum How to use checksums |
a0a33f9cec5860722a5786fa35b38b24e1cca1277971260503b3a129b2eefb92
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Release files / metovhooks-0.1.8-py3-none-any.whl
| Download URL | metovhooks-0.1.8-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b02634840ac9e4a89952f110e4c14c29c2d8ec5f88fdbedd33a05aaa70218db8
|
|
BLAKE2b-256 checksum How to use checksums |
2bb409f6f5fb828c91df2e5696d0ef3f5ea076df3834174ab7cdd52be8bb6647
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Security for metovhooks 0.1.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.