Skip to content

Commit 4fae0a9

Browse files
committed
Improve jinja spacing on pyproject
1 parent 0fe1cd9 commit 4fae0a9

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

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

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,19 @@ readme = "README.md"
77
keywords = ['python']
88
requires-python = ">=3.9,<4.0"
99
dependencies = [
10-
{% if python_data_science %} "polars>=1.32.3",
10+
{%- if python_data_science %}
11+
"polars>=1.32.3",
1112
"pyarrow>=21.0.0",
1213
"seaborn>=0.13.2",
1314
"numpy>=2.0.2",
1415
"ipykernel>=6.30.1",
1516
"nbformat>=5.10.4",
1617
"nbclient>=0.10.2",
17-
{% endif %}{% if aws %} "boto3>=1.7.84",
18-
{% endif %}]
18+
{%- endif %}
19+
{%- if aws %}
20+
"boto3>=1.7.84",
21+
{%- endif %}
22+
]
1923
classifiers = [
2024
"Intended Audience :: Developers",
2125
"Programming Language :: Python",
@@ -29,29 +33,33 @@ classifiers = [
2933

3034
[project.urls]
3135
Repository = "https://github.com/{{ author_github_handle }}/{{ project_name }}"
32-
{% if python_package %}Documentation = "https://{{ author_github_handle }}.github.io/{{ project_name }}/"
33-
{% endif %}
36+
{%- if python_package %}
37+
Documentation = "https://{{ author_github_handle }}.github.io/{{ project_name }}/"
38+
{%- endif %}
3439

3540
[dependency-groups]
3641
dev = [
3742
"pytest>=7.2.0",
3843
"ruff>=0.11.5",
3944
"ty>=0.0.1a21",
4045
"deptry>=0.20.0",
41-
{% if python_package %} "mkdocs>=1.6.0",
46+
{%- if python_package %}
47+
"mkdocs>=1.6.0",
4248
"mkdocs-material>=9.5.0",
4349
"mkdocstrings[python]>=0.26.1",
4450
"build>=1.0.0",
4551
"twine>=4.0.0",
46-
{% endif %}]
52+
{%- endif %}
53+
]
4754

48-
{% if python_package %}[build-system]
55+
{%- if python_package %}
56+
[build-system]
4957
requires = ["hatchling"]
5058
build-backend = "hatchling.build"
5159

5260
[tool.hatch.build.targets.wheel]
5361
packages = ["{{ project_slug }}"]
54-
{% endif %}
62+
{%- endif %}
5563

5664
[tool.pytest.ini_options]
5765
testpaths = ["tests"]

0 commit comments

Comments
 (0)