Skip to content

Suggestion: Distinguished repo type for local running under uv #998

@jpgoldberg

Description

@jpgoldberg

I find myself creating things like

 - repo: local
    hooks:
      - id: mypy
        name: Type checking
        entry: uv run mypy
        types_or: [python, pyi]
        language: system

which feels hacky using language "system" and local repo.

The pre-commit framework correctly discourages local configurations that can vary in behavior from one contributor to another, but because things run with uv run are reproducible given the existence of a shared uv.lock that should cover that. So I wonder whether a special repo type should be created for running things under uv.

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