Skip to content

Add fallback mechanism for prek executable in git hooks#850

Merged
j178 merged 2 commits intomasterfrom
prek-path
Oct 7, 2025
Merged

Add fallback mechanism for prek executable in git hooks#850
j178 merged 2 commits intomasterfrom
prek-path

Conversation

@j178
Copy link
Owner

@j178 j178 commented Oct 7, 2025

The generated hook script now checks if the full prek path is executable
and falls back to using "prek" from PATH if not available.

Closes #786

@j178 j178 added the enhancement New feature or request label Oct 7, 2025
@codecov
Copy link

codecov bot commented Oct 7, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.36%. Comparing base (db190aa) to head (87ed35d).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #850   +/-   ##
=======================================
  Coverage   89.35%   89.36%           
=======================================
  Files          59       59           
  Lines       10967    10972    +5     
=======================================
+ Hits         9800     9805    +5     
  Misses       1167     1167           

☔ 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.

@j178 j178 merged commit 7ccee51 into master Oct 7, 2025
18 checks passed
@j178 j178 deleted the prek-path branch October 7, 2025 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] allow to override prek path at runtime

1 participant