Skip to content

Commit c3eaeaa

Browse files
committed
fix: use template file for pyproject updates
1 parent dadfd1b commit c3eaeaa

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,4 +126,4 @@ ignore = ["UP007", "UP045", "SIM108"]
126126
quote-style = "single"
127127
indent-style = "space"
128128
skip-magic-trailing-comma = false
129-
line-ending = "auto"
129+
line-ending = "auto"

‎template/pyproject.mustache‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,13 @@ dev = [
140140
[build-system]
141141
requires = ["hatchling"]
142142
build-backend = "hatchling.build"
143+
144+
[tool.uv]
145+
# TODO: remove multiple-pin based on python version after we drop Python 3.9 support
146+
build-constraint-dependencies = [
147+
"hatchling==1.32.0; python_version >= '3.10'",
148+
"hatchling==1.27.0; python_version < '3.10'",
149+
]
143150
{{/poetry1}}
144151

145152
[tool.pylint.'MESSAGES CONTROL']

0 commit comments

Comments
 (0)