Skip to content

Commit 0fe1cd9

Browse files
committed
Make build config conditional
1 parent eb3031c commit 0fe1cd9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

template/{% if python %}pyproject.toml{% endif %}.jinja

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,20 @@ dev = [
4545
"twine>=4.0.0",
4646
{% endif %}]
4747

48-
[build-system]
48+
{% if python_package %}[build-system]
4949
requires = ["hatchling"]
5050
build-backend = "hatchling.build"
5151

5252
[tool.hatch.build.targets.wheel]
5353
packages = ["{{ project_slug }}"]
54+
{% endif %}
5455

5556
[tool.pytest.ini_options]
5657
testpaths = ["tests"]
5758
addopts = "-q"
5859

5960
[tool.ruff]
60-
target-version = "py39"
61+
target-version = "py313"
6162
line-length = 120
6263
fix = true
6364

0 commit comments

Comments
 (0)