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

Method __init__

commitizen/changelog_formats/base.py:27–36  ·  view source on GitHub ↗
(self, config: BaseConfig)

Source from the content-addressed store, hash-verified

25 alternative_extensions: ClassVar[set[str]] = set()
26
27 def __init__(self, config: BaseConfig) -> None:
28 # Constructor needs to be redefined because `Protocol` prevent instantiation by default
29 # See: https://bugs.python.org/issue44807
30 self.config = config
31 self.tag_rules = TagRules(
32 scheme=get_version_scheme(self.config.settings),
33 tag_format=self.config.settings["tag_format"],
34 legacy_tag_formats=self.config.settings["legacy_tag_formats"],
35 ignored_tag_formats=self.config.settings["ignored_tag_formats"],
36 )
37
38 def get_metadata(self, filepath: str) -> Metadata:
39 file = Path(filepath)

Callers

nothing calls this directly

Calls 2

TagRulesClass · 0.90
get_version_schemeFunction · 0.90

Tested by

no test coverage detected