Skip to content

Feature Request: Shared Workspace Hooks #2196

@swanysimon

Description

@swanysimon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ideaJust an idea

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions