Skip to content

Difference versus pre-commit: prek fails if there are no stages for the given hook stage #1300

@adamtheturtle

Description

@adamtheturtle

I had default_install_hook_types: [pre-commit, pre-push] but all my hooks had stages: [pre-commit]. There is no error with pre-commit but with prek I got error: No hooks found for stage pre-push after filtering.

Same for uv run --extra=dev prek run --all-files --hook-stage pre-push

Either the behaviour should change or https://prek.j178.dev/quickstart/#already-using-pre-commit should document this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions