✍️ New post covering how to install pre-commit with uv.
This is my recommended install method now, uv takes care of nearly everything.

pre-commit: install with uv - Adam Johnson
pre-commit is my favourite Git-integrated “run things on commit” tool. It acts as a kind of package manager, installing tools as necessary from their Git repositories. This makes it fairly easy to set up: all you need to install is pre-commit itself, and it takes things from there.
adamj.eu
Link author:
Adam Johnson
@adamchainz@fosstodon.org