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

Function get_default_version_scheme

commitizen/project_info.py:56–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54
55
56def get_default_version_scheme() -> Literal["pep440", "semver2"]:
57 return (
58 "pep440"
59 if Path("pyproject.toml").is_file() or Path("setup.py").is_file()
60 else "semver2"
61 )

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected