diff --git a/pyproject.toml b/pyproject.toml index 30964b6..7de3bd8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"