Recommending `prek` - the necessary Rust rewrite of `pre-commit`

1 week ago 12

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:

  1. Its pretty slow (although its surprisingly fast for being written in Python)
  2. 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!

submitted by /u/Goldziher to r/Python
[link] [comments]
Read Entire Article