Support for Python Pre-Commit hooks
Opened this issue ยท 0 comments
lexi-the-cute commented
๐ก Feature Description
Allows testing code before commit. https://pre-commit.com
๐ป Example Usage
.pre-commit-config.yaml
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/rustwasm/twiggy
rev: v3.2.0
hooks:
- id: top
args = ["-n", "20"]
- id: garbage
- id: ...
This'd then be used to pass or fail a commit based on if for example, the top code offenders reached above a certain size which can be configured in the config
๐ Are you interested in implementing this feature?
Add an "X" to one of the following:
- Yes
- Yes if I had a mentor to help me
- No