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

Method get

commitizen/providers/base_provider.py:104–105  ·  view source on GitHub ↗
(self, document: tomlkit.TOMLDocument)

Source from the content-addressed store, hash-verified

102 self._write_text(self.file, tomlkit.dumps(document))
103
104 def get(self, document: tomlkit.TOMLDocument) -> str:
105 return document["project"]["version"] # type: ignore[index,return-value]
106
107 def set(self, document: tomlkit.TOMLDocument, version: str) -> None:
108 document["project"]["version"] = version # type: ignore[index]

Callers 1

get_versionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected