From 69c4291ea78b3baa250149c29beb3126606a5d19 Mon Sep 17 00:00:00 2001 From: "Schmieder, Jacob" Date: Mon, 13 May 2024 09:04:56 +0000 Subject: [PATCH] added other jinja --- pyproject.toml | 9 +++++++++ 1 file changed, 9 insertions(+) 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"