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

Method get

commitizen/providers/base_provider.py:83–84  ·  view source on GitHub ↗
(self, document: Mapping[str, str])

Source from the content-addressed store, hash-verified

81 self._write_text(self.file, json.dumps(document, indent=self.indent) + "\n")
82
83 def get(self, document: Mapping[str, str]) -> str:
84 return document["version"]
85
86 def set(self, document: dict[str, Any], version: str) -> None:
87 document["version"] = version

Callers 15

get_versionMethod · 0.95
test_arg_debugFunction · 0.45
mock_entrypointsFunction · 0.45
messageMethod · 0.45
process_commit_messageFunction · 0.45
__init__Method · 0.45
__init__Method · 0.45
prereleaseMethod · 0.45
get_version_schemeFunction · 0.45
extract_versionMethod · 0.45

Calls

no outgoing calls

Tested by 5

test_arg_debugFunction · 0.36
mock_entrypointsFunction · 0.36
messageMethod · 0.36