Skip to content

Commit afed22f

Browse files
committed
mypy
1 parent 35b0bf3 commit afed22f

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

template/pyproject.toml.jinja

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ keywords = [
6262

6363
[project.optional-dependencies]
6464
test = ["pytest"]
65-
dev = ["pytest", "ruff", "pre-commit", "coverage"]
65+
dev = ["pytest", "ruff", "pre-commit", "coverage", "mypy"]
6666

6767
[project.urls]
6868
Repository = "{{ repository_url }}"
@@ -197,3 +197,19 @@ omit = [
197197
"tests/*",
198198
"tests/**",
199199
]
200+
201+
[tool.mypy]
202+
python_version = "{{ python_min_version }}"
203+
files = ["interfacy"]
204+
exclude = ["^tests/"]
205+
206+
disallow_untyped_defs = true
207+
disallow_untyped_calls = true
208+
disallow_any_generics = true
209+
no_implicit_optional = true
210+
warn_unused_ignores = true
211+
warn_redundant_casts = true
212+
warn_return_any = true
213+
warn_unused_configs = true
214+
strict_equality = true
215+
ignore_missing_imports = true

0 commit comments

Comments
 (0)