Skip to content

Commit 8051e3b

Browse files
committed
fix(pyproject.toml): remove TODO, add jinja2
1 parent 219e893 commit 8051e3b

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ repos:
4545

4646
# 5. Project Config / Dependency Checks
4747
- repo: https://github.com/python-poetry/poetry
48-
rev: 2.1.2 # Use the latest tag from the repo
48+
rev: 2.1.3 # Use the latest tag from the repo
4949
hooks:
5050
- id: poetry-check
5151

poetry.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,6 @@ version = "0.0.0"
2222
enable = true
2323
metadata = true
2424
dirty = true
25-
# TODO: dirty causes issues with dockerization and always returns true, disabling for now
26-
#format-jinja = """
27-
# {%- if distance == 0 -%}
28-
# {{ serialize_pep440(base, stage, revision, metadata=[] + (["dirty"] if dirty else [])) }}
29-
# {%- elif branch == "main" -%}
30-
# {{ serialize_pep440(base, stage, revision, dev=distance, metadata=[commit] + (["dirty"] if dirty else [])) }}
31-
# {%- else -%}
32-
# {{ serialize_pep440(base, stage, revision, dev=distance, metadata=[commit, branch_escaped] + (["dirty"] if dirty else [])) }}
33-
# {%- endif -%}
34-
#"""
3525
format-jinja = """
3626
{%- if distance == 0 -%}
3727
{{ serialize_pep440(base, stage, revision) }}
@@ -78,6 +68,7 @@ watchdog = "^6.0.0"
7868
arrow = "^1.3.0"
7969
click = "^8.1.8"
8070
levenshtein = "^0.27.1"
71+
jinja2 = "^3.1.6"
8172

8273
[tool.poetry.group.dev.dependencies]
8374
pre-commit = ">=4.0.0"

0 commit comments

Comments
 (0)