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

Method info

commitizen/cz/customize/customize.py:101–104  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

99 return self.custom_settings.get("schema") or ""
100
101 def info(self) -> str:
102 if info_path := self.custom_settings.get("info_path"):
103 return Path(info_path).read_text(encoding=self.config.settings["encoding"])
104 return self.custom_settings.get("info") or ""

Callers 4

test_infoFunction · 0.95
test_info_unicodeFunction · 0.95
test_info_with_info_pathFunction · 0.95
test_info_without_infoFunction · 0.95

Calls 1

getMethod · 0.45

Tested by 4

test_infoFunction · 0.76
test_info_unicodeFunction · 0.76
test_info_with_info_pathFunction · 0.76
test_info_without_infoFunction · 0.76