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

fix semver not fully covered #1548

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

Open
bearomorphism wants to merge 38 commits into commitizen-tools:master
base: master
Choose a base branch
Loading
from bearomorphism:bear-fix-semver-not-fully-covered

Conversation

Copy link
Contributor

@bearomorphism bearomorphism commented Jun 12, 2025
edited
Loading

Description

Related issue: #950

Checklist

Comment on lines +67 to +69
(("1.0.0-reallyweird", "PATCH", "reallyweird", 0, None), "1.0.0-reallyweird1"),
(("v0.7.1-release", "PATCH", "release", 0, None), "0.7.1-release1"),
(("v0.0.1-SNAPSHOT", "PATCH", "SNAPSHOT", 0, None), "0.0.1-snapshot1"),
Copy link
Contributor Author

@bearomorphism bearomorphism Jun 12, 2025
edited
Loading

Choose a reason for hiding this comment

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

@Lee-W I'm not entirely sure if these test cases are correct. Could you help to review?

@bearomorphism bearomorphism force-pushed the bear-fix-semver-not-fully-covered branch from 877fcd6 to da46193 Compare June 13, 2025 13:09
Copy link

codecov bot commented Jun 13, 2025
edited
Loading

Codecov Report

❌ Patch coverage is 95.93909% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 98.26%. Comparing base (120d514) to head (3081fff).
⚠️ Report is 802 commits behind head on master.

Files with missing lines Patch % Lines
commitizen/commands/init.py 88.05% 8 Missing ⚠️
Additional details and impacted files
@@ Coverage Diff @@
## master #1548 +/- ##
==========================================
+ Coverage 97.33% 98.26% +0.92% 
==========================================
 Files 42 58 +16 
 Lines 2104 2711 +607 
==========================================
+ Hits 2048 2664 +616 
+ Misses 56 47 -9 
Flag Coverage Δ
unittests 98.26% <95.93%> (+0.92%) ⬆️

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.

@bearomorphism bearomorphism changed the title (削除) WIP fix semver not fully covered (削除ここまで) (追記) fix semver not fully covered (追記ここまで) Aug 13, 2025
@bearomorphism bearomorphism marked this pull request as ready for review August 13, 2025 01:30
@Lee-W Lee-W added this to the 4.9.0 milestone Aug 17, 2025
Comment on lines +67 to +69
(("1.0.0-reallyweird", "PATCH", "reallyweird", 0, None), "1.0.0-reallyweird1"),
(("v0.7.1-release", "PATCH", "release", 0, None), "0.7.1-release1"),
(("v0.0.1-SNAPSHOT", "PATCH", "SNAPSHOT", 0, None), "0.0.1-snapshot1"),
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
(("1.0.0-reallyweird", "PATCH", "reallyweird", 0, None), "1.0.0-reallyweird1"),
(("v0.7.1-release", "PATCH", "release", 0, None), "0.7.1-release1"),
(("v0.0.1-SNAPSHOT", "PATCH", "SNAPSHOT", 0, None), "0.0.1-snapshot1"),
(("1.0.0-reallyweird", "PATCH", "reallyweird", 0, None), "1.0.1-reallyweird1"),
(("v0.7.1-release", "PATCH", "release", 0, None), "0.7.2-release1"),
(("v0.0.1-SNAPSHOT", "PATCH", "SNAPSHOT", 0, None), "0.0.2-snapshot1"),

I feel they probably should be this instead?

@@ -153,11 +153,54 @@ def bump(
VersionScheme: TypeAlias = type[VersionProtocol]


# See https://github.com/pypa/packaging/blob/14b83e15dbb9caa87c63646ba7808b2b5e460ce6/src/packaging/version.py#L117
# TODO: add more test cases for this pattern
_VERSION_PATTERN = r"""^\s*
Copy link
Member

Choose a reason for hiding this comment

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

One thing to note is that Python does not use semver. It exists before semver

bearomorphism and others added 8 commits August 28, 2025 10:28
Original "push" stage has been deprecated since pre-commit v3.2.0. See pre-commit/pre-commit#2732 and pre-commit/pre-commit#2808 for detailed information.
Copy link
Contributor Author

I will update this PR this week when I have bandwidth

@bearomorphism bearomorphism force-pushed the bear-fix-semver-not-fully-covered branch from da46193 to 3081fff Compare September 8, 2025 08:34
@Lee-W Lee-W modified the milestones: 4.9.0, 4.9.1 Sep 9, 2025
@Lee-W Lee-W deleted the branch commitizen-tools:master September 9, 2025 06:09
@Lee-W Lee-W closed this Sep 9, 2025
Copy link
Contributor Author

Maybe we can adjust the workflow. Several PRs got closed just because the target branch is deleted

@Lee-W Lee-W reopened this Sep 9, 2025
@Lee-W Lee-W changed the base branch from v4-9-0-test to master September 9, 2025 14:22
Copy link
Member

Lee-W commented Sep 9, 2025

Yep, this was a temporary workflow. we usually don't receive this many PR and don't review this fast. Maybe worth rethink it to make a rc to avoid what we encountered yesterday as well

@Lee-W Lee-W modified the milestones: 4.9.1, 4.9.2 Sep 9, 2025
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 left review comments

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

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

At least 1 approving review is required to merge this pull request.

Assignees
No one assigned
Projects
None yet
Milestone
4.9.2
Development

Successfully merging this pull request may close these issues.

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