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

Method get

commitizen/providers/cargo_provider.py:31–35  ·  view source on GitHub ↗
(self, document: TOMLDocument)

Source from the content-addressed store, hash-verified

29 return Path() / self.lock_filename
30
31 def get(self, document: TOMLDocument) -> str:
32 out = _try_get_workspace(document)["package"]["version"]
33 if TYPE_CHECKING:
34 assert isinstance(out, str)
35 return out
36
37 def set(self, document: TOMLDocument, version: str) -> None:
38 _try_get_workspace(document)["package"]["version"] = version

Callers 1

set_lock_versionMethod · 0.45

Calls 1

_try_get_workspaceFunction · 0.85

Tested by

no test coverage detected