I think #1598 is the closest I've found, but is coming at this from a different angle (developing hooks).
When working in a large repository, it's common for many of the projects to share the same commit hooks (UV_PYTHON='' VIRTUAL_ENV='' uv run ruff format, as an example). It would be great if there were a way to reference a shared set of hooks in the repository that treated them as if they were local repo hooks in that subproject.
Currently .pre-commit-hooks.yaml can reference the project root, but it isn't treated like a live file - the state that was around on the initial install is what's used for all eternity. Unless you use a commit hash or tag. But those still have to merge before they can be used reliably.
I think #1598 is the closest I've found, but is coming at this from a different angle (developing hooks).
When working in a large repository, it's common for many of the projects to share the same commit hooks (
UV_PYTHON='' VIRTUAL_ENV='' uv run ruff format, as an example). It would be great if there were a way to reference a shared set of hooks in the repository that treated them as if they were local repo hooks in that subproject.Currently
.pre-commit-hooks.yamlcan reference the project root, but it isn't treated like a live file - the state that was around on the initial install is what's used for all eternity. Unless you use a commit hash or tag. But those still have to merge before they can be used reliably.