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

Method get_version

commitizen/providers/base_provider.py:95–97  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

93 """
94
95 def get_version(self) -> str:
96 document = tomlkit.parse(self.file.read_text(encoding=self._get_encoding()))
97 return self.get(document)
98
99 def set_version(self, version: str) -> None:
100 document = tomlkit.parse(self.file.read_text(encoding=self._get_encoding()))

Callers

nothing calls this directly

Calls 2

getMethod · 0.95
_get_encodingMethod · 0.80

Tested by

no test coverage detected