MCPcopy Create free account
hub / github.com/commitizen-tools/commitizen / exit_code_from_str_or_skip

Function exit_code_from_str_or_skip

commitizen/cli.py:635–640  ·  view source on GitHub ↗
(s: str)

Source from the content-addressed store, hash-verified

633 """
634
635 def exit_code_from_str_or_skip(s: str) -> ExitCode | None:
636 try:
637 return ExitCode.from_str(s)
638 except (KeyError, ValueError):
639 out.warn(f"WARN: no_raise value `{s}` is not a valid exit code. Skipping.")
640 return None
641
642 return [
643 code.value

Callers 1

parse_no_raiseFunction · 0.85

Calls 1

from_strMethod · 0.80

Tested by

no test coverage detected