We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d31c1ac commit c51a15fCopy full SHA for c51a15f
project/pyproject.toml.jinja
@@ -140,7 +140,7 @@ vcs = "git"
140
style = "semver"
141
pattern = "default-unprefixed"
142
fallback-version = "1.0.0"
143
-format = "{base}+{distance}.{commit}"
+format-jinja = "{% if distance == 0 %}{{ base }}{% else %}{{ base }}+{{ distance }}.{{ commit }}{% endif %}"
144
145
[tool.hatch.build.hooks.version]
146
path = "src/{{ python_package_import_name }}/__about__.py"
0 commit comments