In this post, Adam shares how he uses uv to install pre-commit using uv's tool
command:
> uv tool install pre-commit
What Adam adds, and that I didn't know about, is the plugin pre-commit-uv
, which makes pre-commit use uv to manage its Python-related hooks, speeding up the pre-commit checks.
After reading this article, I reinstalled pre-commit:
> uv tool install pre-commit --with pre-commit-uv