Use pipx run pre-commit instead of pipx install pre-commit #19

Open
opened 2026-03-10 22:21:08 +01:00 by Philipp · 0 comments
Owner

It is recommended to use pipx run pre-commit instead of pipx install pre-commit. This ensures that the tool is run in an ephemeral environment with its latest version (or a specific version) without needing to permanently install it in the user's environment. This is cleaner and more in line with temporary usage patterns for pre-commit.

Currently, GEMINI.md mentions:

This can be done by running pre-commit install in your local repository.

It might be better to suggest pipx run pre-commit install or similar for users who don't want to install pre-commit globally.

It is recommended to use `pipx run pre-commit` instead of `pipx install pre-commit`. This ensures that the tool is run in an ephemeral environment with its latest version (or a specific version) without needing to permanently install it in the user's environment. This is cleaner and more in line with temporary usage patterns for pre-commit. Currently, `GEMINI.md` mentions: > This can be done by running `pre-commit install` in your local repository. It might be better to suggest `pipx run pre-commit install` or similar for users who don't want to install `pre-commit` globally.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Philipp/template-git#19