feat(version): add MANUAL_VERSION, --next and --patch to version comm…
…and, remove type alias
Closes #1678, #1679
Manually tested and added test cases, the result LGTM.
@Lee-W I already ran pytest tests/commands/test_version_command.py -n auto --regen-all to regenerate the test files, but the pipeline still fails. (The tests passed on my machine)
Do you have any ideas why this happen
There was a way to run all the pre-commits, but I don't remember how it works 😅
Nice to see this going forward 🎉
Codecov Report
:x: Patch coverage is 93.15068% with 5 lines in your changes missing coverage. Please review.
:warning: Please upload report for BASE (v4-11-0@2072f8e). Learn more about missing BASE report.
| Files with missing lines | Patch % | Lines |
|---|---|---|
| commitizen/version_increment.py | 81.25% | 3 Missing :warning: |
| commitizen/commands/version.py | 94.28% | 2 Missing :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## v4-11-0 #1724 +/- ##
==========================================
Coverage ? 98.24%
==========================================
Files ? 61
Lines ? 2619
Branches ? 0
==========================================
Hits ? 2573
Misses ? 46
Partials ? 0
| Flag | Coverage Δ | |
|---|---|---|
| unittests | 98.24% <93.15%> (?) |
Flags with carried forward coverage won't be shown. Click here to find out more.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
@Lee-W I already ran
pytest tests/commands/test_version_command.py -n auto --regen-allto regenerate the test files, but the pipeline still fails. (The tests passed on my machine)Do you have any ideas why this happen
I see why the test failure happens. Please see my other PR #1726 .
I will rebase this branch after #1726 is merged. The test failure should be resolved then.