added other jinja

This commit is contained in:
Schmieder, Jacob
2024-05-13 09:04:56 +00:00
parent 95436562bb
commit 69c4291ea7
+9
View File
@@ -44,6 +44,15 @@ pytest = "^8.1.1"
enable = true
vcs = "git"
strict = true
format-jinja = """
{%- if distance == 0 -%}
{{ serialize_pep440(base, stage, revision) }}
{%- elif revision is not none -%}
{{ serialize_pep440(base, stage, revision + 1, dev=distance, metadata=[commit]) }}
{%- else -%}
{{ serialize_pep440(bump_version(base), stage, revision, dev=distance, metadata=[commit]) }}
{%- endif -%}
"""
[tool.poetry.group.docs.dependencies]
sphinx = "^7.3.7"