Skip to content

Commit

Permalink
MAINT: Enable types checking using mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
ghisvail committed Sep 12, 2024
1 parent e6d9d6d commit 62bb242
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,11 @@ cov = [
"cov-report",
]

[tool.hatch.envs.types]
dependencies = ["mypy>=1.0.0"]
[tool.hatch.envs.types.scripts]
check = "mypy --install-types --non-interactive {args:medkit}"

[tool.hatch.envs.docs]
features = [
"deid",
Expand Down Expand Up @@ -240,6 +245,12 @@ exclude_lines = [
"if TYPE_CHECKING:",
]

[tool.mypy]
disable_error_code = ["import-not-found", "import-untyped"]
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true

[tool.ruff]
line-length = 120
indent-width = 4
Expand Down

0 comments on commit 62bb242

Please sign in to comment.