Skip to content

ethan-0l/pre-commit-pegi18

 
 

Repository files navigation

build status pre-commit.ci status

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. Can add option if some people is interested. Try to follow the release upstream automatically every night if there's one. 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/

About

A framework for managing and maintaining multi-language pre-commit hooks.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 97.3%
  • R 2.1%
  • Shell 0.5%
  • Dockerfile 0.1%
  • Lua 0.0%
  • Ruby 0.0%