From d19d1e8ab66af61a64e24f79bb7624632437e514 Mon Sep 17 00:00:00 2001 From: JENGE Date: Fri, 15 Sep 2023 14:33:39 +0200 Subject: [PATCH] wip --- .pre-commit-config.yaml | 1 + api/pyproject.toml | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a3148f88..8096e306 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -102,6 +102,7 @@ repos: - types-requests - types-ujson - types-toml + - pydantic # The path to the venv python interpreter differ between linux and windows. An if/else is used to find it on either. - repo: local diff --git a/api/pyproject.toml b/api/pyproject.toml index 7f5fc26e..82b9f810 100644 --- a/api/pyproject.toml +++ b/api/pyproject.toml @@ -65,11 +65,19 @@ requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api" [tool.mypy] + +[tool.mypy] + +plugins = ["pydantic.mypy"] + ignore_missing_imports = true warn_return_any = true warn_unused_configs = true namespace_packages = true explicit_package_bases = true +allow_subclassing_any = true + +strict = true [tool.ruff]