From 60439c7d8e3f6bcf58e82a27c721faf2bf9221ad Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 20 Oct 2024 15:29:37 +0200 Subject: [PATCH] chore: enhanced pyright configuration this should get rid of most errors in recent pylance versions by disabling them all. --- pyproject.toml | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 0fbb8a21e..1db932cdc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -209,12 +209,38 @@ module = "tests.*" ignore_errors = true [tool.pyright] -include = ["freqtrade"] +include = ["freqtrade", "ft_client"] exclude = [ "**/__pycache__", "build_helpers/*.py", + "ft_client/build/*", + "build/*", + "tests/*", ] ignore = ["freqtrade/vendor/**"] +pythonPlatform = "All" +pythonVersion = "3.9" + +typeCheckingMode = "off" +# analyzeUnannotatedFunctions = false + +reportArgumentType = false # 155 +reportAssignmentType = false # 12 +reportAttributeAccessIssue = false # 255 +reportCallIssue = false # 23 +reportGeneralTypeIssues = false # 48 +reportIncompatibleMethodOverride = false # 15 +reportIncompatibleVariableOverride = false # 5 +reportIndexIssue = false # 22 +reportMissingImports = false # 5 +reportOperatorIssue = false # 7 +reportOptionalMemberAccess = false # 35 +reportOptionalOperand = false # 7 +reportPossiblyUnboundVariable = false # 36 +reportPrivateImportUsage = false # 5 +reportRedeclaration = false # 1 +reportReturnType = false # 28 +reportTypedDictNotRequiredAccess = false # 27 [tool.ruff]