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

Method get_metadata

commitizen/changelog_formats/base.py:38–44  ·  view source on GitHub ↗
(self, filepath: str)

Source from the content-addressed store, hash-verified

36 )
37
38 def get_metadata(self, filepath: str) -> Metadata:
39 file = Path(filepath)
40 if not file.is_file():
41 return Metadata()
42
43 with file.open(encoding=self.config.settings["encoding"]) as changelog_file:
44 return self.get_metadata_from_file(changelog_file)
45
46 def get_metadata_from_file(self, file: IO[Any]) -> Metadata:
47 meta = Metadata()

Callers 9

test_get_metadataFunction · 0.45
test_get_metadataFunction · 0.45
test_get_metadataFunction · 0.45
test_get_metadataFunction · 0.45
__call__Method · 0.45

Calls 2

MetadataClass · 0.90

Tested by 8

test_get_metadataFunction · 0.36
test_get_metadataFunction · 0.36
test_get_metadataFunction · 0.36
test_get_metadataFunction · 0.36