Skip to content

Commit 43c86b8

Browse files
Add jinja for hatch condition
Co-authored-by: Saransh Chopra <[email protected]>
1 parent 255d312 commit 43c86b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

{{cookiecutter.project_name}}/pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,13 @@ Homepage = "{{ cookiecutter.url }}"
6161
Discussions = "{{ cookiecutter.url }}/discussions"
6262
Changelog = "{{ cookiecutter.url }}/releases"
6363

64+
{%- if cookiecutter.backend == "hatch" %}
6465
[tool.hatch]
6566
version.path = "src/{{ cookiecutter.__project_slug }}/__init__.py"
6667
envs.default.dependencies = [
6768
"pybamm",
6869
]
70+
{%- endif %}
6971

7072
[tool.coverage]
7173
run.source = ["{{ cookiecutter.__project_slug }}"]

0 commit comments

Comments
 (0)