python - Different results from Ruff between CLI and pre-commit hook - Stack Overflow
What are your favourite pre-commit hooks and why?
When to use pre-commit hook vs GitHub actions?
python poetry - Running git commit is not properly running pre-commit hooks - Stack Overflow
Videos
» pip install ruff
Just getting started with pre-commit and I think it's awesome. Looking to find out what other code automation tools people are using. Let me know what works for you and why. Thanks!
Hello! I’m working on a personal project and want to include features such as mypy, ruff, and auto runs of tests. As far as testing I’ve seen some cool integrations with GitHub actions. For ruff and mypy I’ve seen it go both ways in a pre-commit hook or in actions. Is there a standard for where ruff or mypy should be used?
Hi peeps,
I wanna recommend to all of you the tool prek to you. This is a Rust rewrite of the established Python tool pre-commit, which is widely used. Pre-commit is a great tool but it suffers from several limitations:
-
Its pretty slow (although its surprisingly fast for being written in Python)
-
The maintainer (asottile) made it very clear that he is not willing to introduce monorepo support or any other advanced features (e.g. parallelization) asked over the years
I was following this project from its inception (whats now called Prek) and it evolved both very fast and very well. I am now using it across multiple project, e.g. in Kreuzberg, both locally and in CI and it does bring in an at least x10 speed improvement (linting and autoupdate commands!)
So, I warmly recommend this tool, and do show your support for Prek by giving it a star!