Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(prek): supporting prek as an alternative to pre-commit and switching to prek #1799

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
bearomorphism merged 11 commits into commitizen-tools:master from YazdanRa:feat/support-prek
Jan 19, 2026

Conversation

@YazdanRa
Copy link
Contributor

@YazdanRa YazdanRa commented Jan 14, 2026

Description

Replacing pre-commit with prek and add support for prek in hooks

Checklist

Code Changes

  • Add test cases to all the changes you introduce
  • Run uv run poe all locally to ensure this change passes linter check and tests
  • Manually test the changes:
    • Verify the feature/bug fix works as expected in real-world scenarios
    • Test edge cases and error conditions
    • Ensure backward compatibility is maintained
    • Document any manual testing steps performed
  • Update the documentation for the changes

Documentation Changes

  • Run uv run poe doc locally to ensure the documentation pages renders correctly
  • Check and fix any broken links (internal or external) in the documentation

When running uv run poe doc, any broken internal documentation links will be reported in the console output like this:

INFO - Doc file 'config.md' contains a link 'commands/bump.md#-post_bump_hooks', but the doc 'commands/bump.md' does not contain an anchor '#-post_bump_hooks'.

Expected Behavior

Faster pre commit checks and hook installation

Steps to Test This Pull Request

N/A

Additional Context

#1797

Copy link

codecov bot commented Jan 14, 2026
edited
Loading

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.96%. Comparing base (f6aef69) to head (f9b56d5).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@ Coverage Diff @@
## master #1799 +/- ##
=======================================
 Coverage 97.96% 97.96% 
=======================================
 Files 60 60 
 Lines 2648 2648 
=======================================
 Hits 2594 2594 
 Misses 54 54 

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

@YazdanRa YazdanRa force-pushed the feat/support-prek branch 2 times, most recently from 08c781c to 83e3832 Compare January 14, 2026 05:31
@YazdanRa YazdanRa marked this pull request as ready for review January 14, 2026 05:39
Copy link
Contributor Author

I should maybe add the pre-commit in the test dependency group and parameterize the tests to check for both. wdyt?

Copy link
Collaborator

I should maybe add the pre-commit in the test dependency group and parameterize the tests to check for both. wdyt?

sure, why not

YazdanRa reacted with thumbs up emoji

Copy link
Collaborator

@bearomorphism bearomorphism left a comment

Choose a reason for hiding this comment

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

LGTM, some nits

Copy link
Collaborator

Thanks!

Copy link
Collaborator

This looks great! Let's wait for other maintainer's input.

Copy link
Member

@Lee-W Lee-W left a comment

Choose a reason for hiding this comment

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

One wording nit. I'm good with this idea

YazdanRa added 10 commits January 18, 2026 19:51
@bearomorphism bearomorphism merged commit 7d1bcc8 into commitizen-tools:master Jan 19, 2026
20 checks passed
@YazdanRa YazdanRa deleted the feat/support-prek branch January 20, 2026 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Lee-W Lee-W Lee-W approved these changes

@bearomorphism bearomorphism bearomorphism approved these changes

@woile woile Awaiting requested review from woile woile is a code owner

@noirbizarre noirbizarre Awaiting requested review from noirbizarre noirbizarre is a code owner

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /