Skip to content

[CI][Dev] Use prek instead of pre-commit #55672

Open

Description

@rok

Describe the enhancement requested

prek is a faster drop-in replacement for pre-commit with more features. It reads the existing .pre-commit-config.yaml without changes, as suggested in #55264 (comment).

Proposal:

  • Switch the lint job in .github/workflows/dev.yml from pre-commit to prek.
  • Update the developer docs to recommend prek. Contributors can keep using pre-commit locally, since the config stays compatible.

Component(s)

Developer Tools, Continuous Integration

Activity

  1. rok commented on Nov 18, 2026

    @rok
    MemberAuthor

    @raulcd @kou apparently prek is a drop-in replacement for pre-commit and might improve our CI performance.

  2. changed the title [-][Dev] Use prek instead of pre-commit[/-] [+][CI][Dev] Use prek instead of pre-commit[/+] on Nov 18, 2026
  3. jorisvandenbossche commented on Nov 18, 2026

    @jorisvandenbossche
    Member

    One potentially interesting aspect to explore is whether prek would help with avoiding to install every hook even if not needed for your changes (see #46646 (comment), eg to avoid needing a local ruby install: #47937)

    (note on the CI performance that pre-commit currently only takes just over 1 minute to run, so it will never be a big improvement, compared to how long many other CI jobs run)

  4. rok commented on Nov 18, 2026

    @rok
    MemberAuthor

    One potentially interesting aspect to explore is whether prek would help with avoiding to install every hook even if not needed for your changes (see #46646 (comment), eg to avoid needing a local ruby install: #47937)

    Yes, the need for ruby install is painful.

    (note on the CI performance that pre-commit currently only takes just over 1 minute to run, so it will never be a big improvement, compared to how long many other CI jobs run)

    Fair enough!

  5. kou commented on Nov 18, 2026

    @kou
    Member

    Let's try prek!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions