Skip to content

Commit 44751fc

Browse files
authored
Include mypy as dependency if selected
1 parent 576a2ef commit 44751fc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

template/pyproject.toml.jinja

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@ requires-python = ">=3.7"
2323
[project.optional-dependencies]
2424
dev = [
2525
"copier",
26-
{% if sphinx %}"myst-parser",
26+
{% if type_checker=="mypy" %}"mypy",
27+
{% endif %}{% if sphinx %}"myst-parser",
2728
{% endif %}"pipdeptree",
2829
"pre-commit",
2930
{% if sphinx %}"pydata-sphinx-theme>=0.12",
30-
{% endif %}"pyright",
31-
"pytest",
31+
{% endif %}{% if type_checker=="pyright" %}"pyright",
32+
{% endif %}"pytest",
3233
"pytest-cov",
3334
"ruff",
3435
{% if sphinx %}"sphinx-autobuild",

0 commit comments

Comments
 (0)