MCPcopy Index your code
hub / github.com/commitizen-tools/commitizen / __init__

Method __init__

commitizen/config/toml_config.py:23–26  ·  view source on GitHub ↗
(self, *, data: bytes | str, path: Path)

Source from the content-addressed store, hash-verified

21
22class TomlConfig(BaseConfig):
23 def __init__(self, *, data: bytes | str, path: Path) -> None:
24 super().__init__()
25 self.path = path
26 self._parse_setting(data)
27
28 def contains_commitizen_section(self) -> bool:
29 config_doc = parse(self.path.read_bytes())

Callers

nothing calls this directly

Calls 1

_parse_settingMethod · 0.95

Tested by

no test coverage detected