Skip to content

Conversation

@bearomorphism
Copy link
Contributor

@bearomorphism bearomorphism commented Nov 11, 2025

Changes

Relate #1643

  • Refactors
  • Collect all NotAllowed error messages and raise it at the end of option validation process

@codecov
Copy link

codecov bot commented Nov 11, 2025

Codecov Report

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

Additional details and impacted files
@@            Coverage Diff             @@
##             v4-10-1    #1646   +/-   ##
==========================================
  Coverage           ?   98.68%           
==========================================
  Files              ?       60           
  Lines              ?     2656           
  Branches           ?        0           
==========================================
  Hits               ?     2621           
  Misses             ?       35           
  Partials           ?        0           
Flag Coverage Δ
unittests 98.68% <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.

@bearomorphism bearomorphism changed the title refactor(bump): extract option validation and new version resolution … fix(bump): extract option validation and new version resolution … Nov 11, 2025
@Lee-W Lee-W added this to the 4.10.1 milestone Nov 16, 2025
@Lee-W Lee-W changed the title fix(bump): extract option validation and new version resolution … fix(bump): extract option validation and new version resolution Nov 16, 2025
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.

mostly good. one minor question


if build_metadata and is_local_version:
raise NotAllowed("--local-version cannot be combined with --build-metadata")
# we create an empty PATCH increment for empty tag
Copy link
Member

Choose a reason for hiding this comment

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

Not sure whehter we documented this. If not, we should add it 🤔 but we could do that in the future



@pytest.mark.usefixtures("tmp_commitizen_project")
def test_bump_get_next__manual_version_is_not_allowed(mocker: MockFixture):
Copy link
Member

Choose a reason for hiding this comment

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

Why is this removed?

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