Skip to content

[CI] Switch pre-commit to use ASF approved prek-action - #1318

Merged
paulirwin merged 1 commit into
apache:masterfrom
jbampton:switch-to-prek-action
Jun 10, 2026
Merged

[CI] Switch pre-commit to use ASF approved prek-action#1318
paulirwin merged 1 commit into
apache:masterfrom
jbampton:switch-to-prek-action

Conversation

@jbampton

@jbampton jbampton commented Jun 8, 2026

Copy link
Copy Markdown
Member

@paulirwin paulirwin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, approved. I like this for several reasons:

  1. Removes a lot of noise from the workflow file
  2. Doesn't require installing Python
  3. Uses an ASF-approved action, pinned to a SHA
  4. It's already in use at another Apache project
  5. Works well with our existing pre-commit rules
  6. ... and WOW is it fast! Running prek locally is anywhere from 1.5-2.6x faster in initial testing.

Thanks for doing this!

@paulirwin
paulirwin force-pushed the switch-to-prek-action branch from b1b773a to bd11b08 Compare June 10, 2026 14:59
@paulirwin
paulirwin merged commit bfa05f8 into apache:master Jun 10, 2026
217 of 218 checks passed
@jbampton
jbampton deleted the switch-to-prek-action branch June 10, 2026 15:31
@paulirwin paulirwin added the notes:ignore Don't show this PR in the Release Notes label Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

notes:ignore Don't show this PR in the Release Notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants