Skip to content

Conversation

@bearomorphism
Copy link
Contributor

@bearomorphism bearomorphism commented Jun 10, 2025

Description

Before this change, the type of tag_format is Any | Unbounded | str at the end of the function. Actually tag_format is defined for all code paths.

  • If is_correct_format is True, then tag_format is assigned "v$version" and the function returns it.
  • If is_correct_format is False, then tag_format is initialized in the if-block.

The function logic should be easier to understand after this change.

Checklist

@codecov
Copy link

codecov bot commented Jun 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (v4-9-0-test@6b4f8b0). Learn more about missing BASE report.

Additional details and impacted files
@@              Coverage Diff               @@
##             v4-9-0-test    #1529   +/-   ##
==============================================
  Coverage               ?   98.07%           
==============================================
  Files                  ?       58           
  Lines                  ?     2700           
  Branches               ?        0           
==============================================
  Hits                   ?     2648           
  Misses                 ?       52           
  Partials               ?        0           
Flag Coverage Δ
unittests 98.07% <100.00%> (?)

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.

@Lee-W Lee-W added this to the 4.9.0 milestone Jun 10, 2025
@bearomorphism bearomorphism marked this pull request as ready for review June 10, 2025 05:26
@Lee-W Lee-W merged commit 30baeab into commitizen-tools:v4-9-0-test Aug 13, 2025
18 checks passed
@bearomorphism bearomorphism deleted the r-ask-tag-format branch August 13, 2025 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants