File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,13 @@ requires-python = ">=3.7"
2323[project.optional-dependencies]
2424dev = [
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",
Original file line number Diff line number Diff line change @@ -55,6 +55,12 @@ def test_template(tmp_path: Path):
5555 run ("./venv/bin/twine check --strict dist/*" )
5656
5757
58+ def test_template_mypy (tmp_path : Path ):
59+ copy_project (tmp_path , type_checker = "mypy" )
60+ run = make_venv (tmp_path )
61+ run ("./venv/bin/tox -p" )
62+
63+
5864def test_template_no_docs (tmp_path : Path ):
5965 copy_project (tmp_path , docs_type = "README" )
6066 run = make_venv (tmp_path )
You can’t perform that action at this time.
0 commit comments