Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Python Pre-Commit hooks #749

Open
1 of 3 tasks
lexi-the-cute opened this issue Feb 20, 2024 · 0 comments
Open
1 of 3 tasks

Support for Python Pre-Commit hooks #749

lexi-the-cute opened this issue Feb 20, 2024 · 0 comments

Comments

@lexi-the-cute
Copy link

lexi-the-cute commented Feb 20, 2024

💡 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant