From 6940ec9700fd2bb91cad08f3ea0b11735c1491e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Sun, 19 Nov 2023 13:09:28 +0100 Subject: [PATCH] Tweak mypy config --- pyproject.toml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 20bd0fb..545d8b1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,6 +41,8 @@ mypy = [ [project.urls] Home = "https://github.com/sbidoul/runboat" +# ruff + [tool.ruff] fix = true target-version = "py310" @@ -63,19 +65,30 @@ max-complexity = 15 [tool.ruff.isort] known-first-party = ["runboat"] +# pytest + [tool.pytest.ini_options] env_override_existing_values = 1 env_files = [".env.test"] asyncio_mode = "strict" -# flake8 config is in .flake8 + +# mypy [tool.mypy] strict = true show_error_codes = true +plugins = ["pydantic.mypy"] [[tool.mypy.overrides]] -module = ["uvicorn.*", "kubernetes.*", "ansi2html"] +module = ["kubernetes.*"] ignore_missing_imports = true +[tool.pydantic-mypy] +init_forbid_extra = true +init_typed = true +warn_required_dynamic_aliases = true + +# pip-deepfreeze + [tool.pip-deepfreeze.sync] extras = "test,mypy"