(self, config: BaseConfig)
| 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) |
nothing calls this directly
no test coverage detected