fix(CommitizenProvider): raise if version is None#1552
Merged
Lee-W merged 1 commit intocommitizen-tools:v4-9-0-testfrom Jun 14, 2025
Merged
fix(CommitizenProvider): raise if version is None#1552Lee-W merged 1 commit intocommitizen-tools:v4-9-0-testfrom
Lee-W merged 1 commit intocommitizen-tools:v4-9-0-testfrom
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## v4-9-0-test #1552 +/- ##
==============================================
Coverage ? 97.98%
==============================================
Files ? 58
Lines ? 2686
Branches ? 0
==============================================
Hits ? 2632
Misses ? 54
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Lee-W
reviewed
Jun 13, 2025
commitizen/commands/version.py
Outdated
| out.write(f"{__version__}") | ||
| return | ||
|
|
||
| out.write(("Project Version: " if verbose else "") + version) |
Member
There was a problem hiding this comment.
Suggested change
| out.write(("Project Version: " if verbose else "") + version) | |
| out.write(f"Project Version: {version}" if verbose else version) |
…l sites of get_version
Lee-W
approved these changes
Jun 14, 2025
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
Checklist
Code Changes
poetry alllocally to ensure this change passes linter check and tests