From e16804823c149c3bf66c2531824842a0691b155b Mon Sep 17 00:00:00 2001 From: Salomon Popp Date: Wed, 3 Apr 2024 16:47:11 +0200 Subject: [PATCH] Set Pyright to warn on unknown types (#480) Closes #367 "warning" diagnostics don't cause the pre-commit hook to fail, but you'll get those highlighted in the code when using Pyright/Pylance LSP --- pyproject.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index fc6e903a8..2116ae3e1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -66,9 +66,14 @@ mike = "^1.1.2" [tool.poetry_bumpversion.file."kpops/__init__.py"] [tool.pyright] +reportUnknownParameterType = "warning" +reportUnknownArgumentType = "warning" +reportUnknownLambdaType = "warning" +reportUnknownVariableType = "warning" +reportUnknownMemberType = "warning" + reportIncompatibleVariableOverride = false reportIncompatibleMethodOverride = false - # FIXME: causes issues on Python 3.10 # reportIncompatibleVariableOverride = "warning" # reportIncompatibleMethodOverride = "warning"