Skip to content

feat(prek): support prek as hook runner#73

Open
noirbizarre wants to merge 2 commits intoGabDug:mainfrom
noirbizarre:feat/prek-install
Open

feat(prek): support prek as hook runner#73
noirbizarre wants to merge 2 commits intoGabDug:mainfrom
noirbizarre:feat/prek-install

Conversation

@noirbizarre
Copy link
Collaborator

Hello 👋🏼

This PR completes #67 by supporting prek as a hook runner, aka. the tool used to install pre-commit hooks automatically.

It adds a hook-runner setting supporting the following values:

  • pre-commit: the default for backward compatibility
  • prek: choose a prek as hook runner
  • auto: choose prek if available and fallback on pre-commit (useful for people using tools like mise as they can just install one of the 2 depending on the project and not have to set hook-runner for each project)

@codecov
Copy link

codecov bot commented Mar 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.23%. Comparing base (4966c00) to head (434bbad).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #73      +/-   ##
==========================================
+ Coverage   97.13%   97.23%   +0.10%     
==========================================
  Files          12       12              
  Lines         697      724      +27     
  Branches       62       65       +3     
==========================================
+ Hits          677      704      +27     
  Misses         18       18              
  Partials        2        2              
Flag Coverage Δ
unittests 97.23% <100.00%> (+0.10%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant