You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The benchmarking showed the pre-commit install-hooks command which I wasn't familiar with. This solves a user experience problem where the hooks are installed on the first commit which is exceptionally slow. We are better to front-foot that during installation with usethis.
Apparently, pre-commit install and pre-commit install-hooks can be combined into a single command as pre-commit install --install-hooks. But it might be better to keep the commands separate to give more informative error messages via usethis.
Summary of desired enhancement
Run pre-commit install-hooks when initializing pre-commit via usethis.
The text was updated successfully, but these errors were encountered:
Motivation
Came across this project:
https://github.com/tox-dev/pre-commit-uv
(C.f. https://github.com/j178/pre-commit-rs which has somewhat similar objectives)
The benchmarking showed the
pre-commit install-hooks
command which I wasn't familiar with. This solves a user experience problem where the hooks are installed on the first commit which is exceptionally slow. We are better to front-foot that during installation with usethis.Apparently,
pre-commit install
andpre-commit install-hooks
can be combined into a single command aspre-commit install --install-hooks
. But it might be better to keep the commands separate to give more informative error messages via usethis.Summary of desired enhancement
Run
pre-commit install-hooks
when initializing pre-commit via usethis.The text was updated successfully, but these errors were encountered: