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

Method get

commitizen/providers/poetry_provider.py:18–19  ·  view source on GitHub ↗
(self, pyproject: tomlkit.TOMLDocument)

Source from the content-addressed store, hash-verified

16 filename = "pyproject.toml"
17
18 def get(self, pyproject: tomlkit.TOMLDocument) -> str:
19 return pyproject["tool"]["poetry"]["version"] # type: ignore[index,return-value]
20
21 def set(self, pyproject: tomlkit.TOMLDocument, version: str) -> None:
22 pyproject["tool"]["poetry"]["version"] = version # type: ignore[index]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected