diff --git a/pyproject.toml b/pyproject.toml index a44813210c..43d9042548 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -181,6 +181,7 @@ from-first = true known-local-folder = ["tuning"] [tool.mypy] +plugins = ['pydantic.mypy'] mypy_path = ["src"] packages = ["instructlab", "tests"] disable_error_code = [] @@ -228,6 +229,11 @@ module = [ ] ignore_missing_imports = true +[tool.pydantic-mypy] +init_forbid_extra = true +init_typed = true +warn_required_dynamic_aliases = true + [tool.coverage.run] branch = false relative_files = true