commitizen
commitizen copied to clipboard
fix(ExitCode): add from_str in ExitCode and replace parse_no_raise with it, warn if the error code is not in range
Description
- Now we validate if the error code exists given a decimal string
Checklist
- [ ] I have read the contributing guidelines
Code Changes
- [ ] Add test cases to all the changes you introduce
- [ ] Run
poetry alllocally to ensure this change passes linter check and tests - [ ] Manually test the changes:
- [ ] Verify the feature/bug fix works as expected in real-world scenarios
- [ ] Test edge cases and error conditions
- [ ] Ensure backward compatibility is maintained
- [ ] Document any manual testing steps performed
- [ ] Update the documentation for the changes
Codecov Report
:white_check_mark: All modified and coverable lines are covered by tests.
:warning: 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 #1545 +/- ##
==============================================
Coverage ? 97.98%
==============================================
Files ? 58
Lines ? 2680
Branches ? 0
==============================================
Hits ? 2626
Misses ? 54
Partials ? 0
| Flag | Coverage Δ | |
|---|---|---|
| unittests | 97.98% <100.00%> (?) |
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.