Attention !
This version is a little patch do to modification during pre-commit. Because you're not child and assume the consequence.
/!\ It's just a really quick hack. there is no safeguard nor configuration by hook. Can add option if some people is interested. In this case I'll do an Autopatch CI to build from the upstream repo and stay up to date. I do not change the name of the package builded so it replace the initial one.
Installation
there is no release for now
- install with
pip install git+https://github.com/ethan-0l/pre-commit-pegi18.git
or git local
git clone https://github.com/ethan-0l/pre-commit-pegi18.git
cd pre-commit-pegi18
pip install .
poetry :
poetry add git+https://github.com/ethan-0l/pre-commit-pegi18.git
Use
- Add allow_modifications: true to hook
- Add allow_return_nzero: true to hook <- use with more caution
- Add allow_return_codes: [1,2,3.....,42,...] <- 0 is always allowed. Usefull for hook that has proper handling of failure vs modification.
.pre-commit-config.yaml
- repo: https....
rev: v3.14.2
hooks:
- id: ...
args: []
stages:
- pre-commit
allow_modifications: true
ou set PRE_COMMIT_ALLOW_MODIFICATIONS a true
$env:PRE_COMMIT_ALLOW_MODIFICATIONS="true"
export PRE_COMMIT_ALLOW_MODIFICATIONS=true
also available : PRE_COMMIT_ALLOW_RETURN_NZERO
pre-commit
A framework for managing and maintaining multi-language pre-commit hooks.
For more information see: https://pre-commit.com/
Metadata
Release files for pre-commit-pegi18 4.0.1
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 |
|---|---|---|---|---|
| pre_commit_pegi18-4.0.1.tar.gz | 195.9 kB | Without provenance | Details for pre_commit_pegi18-4.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pre_commit_pegi18-4.0.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for pre_commit_pegi18-4.0.1-py2.py3-none-any.whl |
Total release size: 418.4 kB
Release files / pre_commit_pegi18-4.0.1.tar.gz
| Download URL | pre_commit_pegi18-4.0.1.tar.gz |
|---|---|
| Size | 195.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
528502960bb2138e24a2287d52fe4994a6755b47078a74aba44b9b4604e16345
|
|
BLAKE2b-256 checksum How to use checksums |
6e652ab96be8cee509721df1726121e5ad665db9019b869ac9fdf6297211284b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.0
|
Release files / pre_commit_pegi18-4.0.1-py2.py3-none-any.whl
| Download URL | pre_commit_pegi18-4.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 222.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
c2bbba560aea943bb20651fe6108747a1c7d68a4eb82e0886b0f9148852913b7
|
|
BLAKE2b-256 checksum How to use checksums |
db38eee87b50baadde1a317413ce695bab60c69e02e5c8199c12fc92423f9dc3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.0
|
Security for pre-commit-pegi18 4.0.1
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.