rustwasm/twiggy

Support for Python Pre-Commit hooks

Opened this issue ยท 0 comments

๐Ÿ’ก 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