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 25, 2024
1 parent e6d9d6d commit 76914bd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 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"]
[tool.hatch.envs.types.scripts]
check = "mypy --install-types --non-interactive {args}"

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

[tool.mypy]
files = ["medkit"]
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 76914bd

Please sign in to comment.