Repository navigation
Conversation
These handle file line endings, not git commands. commitizen.git still exports both names, so existing imports keep working.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2132 +/- ##
=======================================
Coverage 98.29% 98.29%
=======================================
Files 61 62 +1
Lines 2874 2880 +6
=======================================
+ Hits 2825 2831 +6
Misses 49 49 ☔ View full report in Codecov by Harness. |
Member
|
Hi thanks for this but it doesn't add any value |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Part of #2129.
smart_openandEOLTypehandle file line endings, not git commands. Move them fromcommitizen/git.pyto a newcommitizen/eol.pymodule, and update the internal imports.commitizen.gitstill exports both names (from commitizen.eol import smart_open as smart_open), so existing imports and third-party plugins keep working.Checklist
Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code following the guidelines. AI suggested the changes; I wrote and reviewed the code by hand.
Code Changes
uv run poe alllocally to ensure this change passes linter check and testsExpected Behavior
No change.
from commitizen.git import smart_open, EOLTypestill works.Steps to Test This Pull Request
uv run poe alltests/test_git.pystill usesgit.EOLTypeand passes, which confirms the re-export.Additional Context
In
commands/changelog.py, ruff (rule TC001) moved theGitTagimport into theTYPE_CHECKINGblock because that import line changed. Pure refactor, so no docs change.