From 5c7dea6b964dfbf513c99819fca66354e6c92ba8 Mon Sep 17 00:00:00 2001 From: Patrick Ogenstad Date: Sat, 2 Nov 2024 09:14:24 +0100 Subject: [PATCH] Rework ignore rules for mypy --- pyproject.toml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4289d7e2..e648ee8a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -153,19 +153,34 @@ disallow_untyped_defs = true [[tool.mypy.overrides]] module = "infrahub_sdk.ctl.check" -ignore_errors = true +disable_error_code = [ + "call-overload" +] [[tool.mypy.overrides]] module = "infrahub_sdk.ctl.generator" -ignore_errors = true +disable_error_code = [ + "attr-defined", + "no-untyped-def", +] [[tool.mypy.overrides]] module = "infrahub_sdk.ctl.schema" -ignore_errors = true +disable_error_code = [ + "arg-type", + "attr-defined", + "misc", + "union-attr", +] [[tool.mypy.overrides]] module = "infrahub_sdk.utils" -ignore_errors = true +disable_error_code = [ + "arg-type", + "attr-defined", + "return-value", + "union-attr", +] [tool.ruff] line-length = 120