Skip to content

Conversation

@bearomorphism
Copy link
Contributor

Update outdated information, fix grammar mistakes, add error codes, etc.

@codecov
Copy link

codecov bot commented Nov 20, 2025

Codecov Report

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

Additional details and impacted files
@@            Coverage Diff             @@
##             v4-10-1    #1662   +/-   ##
==========================================
  Coverage           ?   98.60%           
==========================================
  Files              ?       60           
  Lines              ?     2650           
  Branches           ?        0           
==========================================
  Hits               ?     2613           
  Misses             ?       37           
  Partials           ?        0           
Flag Coverage Δ
unittests 98.60% <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 force-pushed the doc-exit branch 2 times, most recently from bf1fca1 to 08f521a Compare November 20, 2025 16:04
@bearomorphism bearomorphism changed the base branch from master to v4-10-1 November 20, 2025 16:04
@bearomorphism bearomorphism changed the title docs(exit-codes): general update docs(exit-codes): general update and add docstring to exceptions.py Nov 20, 2025
docs(exception): add comment for updating exit code doc


class CurrentVersionNotFoundError(CommitizenException):
"""current version cannot be found in _version_files_"""
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
"""current version cannot be found in _version_files_"""
"""Current version cannot be found in `version_files`"""



class InitFailedError(CommitizenException):
"""Failed to initialize pre-commit"""
Copy link
Member

Choose a reason for hiding this comment

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

Could it be other issue with cz init?

| `CurrentVersionNotFoundError`| 17 | Current version cannot be found in _version_files_ |
| `InvalidCommandArgumentError`| 18 | The argument provided to the command is invalid (e.g. `cz check -commit-msg-file filename --rev-range master..`) |
| `InvalidConfigurationError` | 19 | An error was found in the Commitizen Configuration, such as duplicates in `change_type_order` |
| `NotAllowed` | 20 | `--incremental` cannot be combined with a `rev_range` |
Copy link
Member

Choose a reason for hiding this comment

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

Is it the only case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No. I can update the description like "Invalid combination of command line / configuration file options"

@woile
Copy link
Member

woile commented Nov 21, 2025

nice! LGTM!

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.

3 participants