diff --git a/pyproject.toml b/pyproject.toml index f1e254e9..946f7359 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", @@ -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