From 111ef71865d03dc39bc39d30ab2a4d5e714c94e1 Mon Sep 17 00:00:00 2001 From: Catalin Date: Thu, 8 Aug 2024 17:45:48 +0300 Subject: [PATCH] revert pyright configuration --- pyproject.toml | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3095e7a5c2..0a7afe3c1c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -69,15 +69,15 @@ reportMissingImports = true reportMissingModuleSource = true reportMissingTypeStubs = false reportImportCycles = false -reportUnusedImport = false +reportUnusedImport = true reportUnusedClass = true reportUnusedFunction = true reportUnusedVariable = true reportDuplicateImport = true reportOptionalSubscript = true -reportOptionalMemberAccess = false +reportOptionalMemberAccess = true reportOptionalCall = true -reportOptionalIterable = false +reportOptionalIterable = true reportOptionalContextManager = true reportOptionalOperand = true # We are using Context in a way that conflicts with this check @@ -87,23 +87,23 @@ reportIncompatibleMethodOverride = false reportIncompatibleVariableOverride = false reportOverlappingOverload = true reportUntypedFunctionDecorator = false -reportUnknownParameterType = false +reportUnknownParameterType = true reportUnknownArgumentType = false reportUnknownLambdaType = false reportUnknownMemberType = false -reportMissingTypeArgument = false +reportMissingTypeArgument = true reportInvalidTypeVarUse = true reportCallInDefaultInitializer = true reportUnknownVariableType = false reportUntypedBaseClass = true -reportUnnecessaryIsInstance = false -reportUnnecessaryCast = false -reportUnnecessaryComparison = false +reportUnnecessaryIsInstance = true +reportUnnecessaryCast = true +reportUnnecessaryComparison = true reportAssertAlwaysTrue = true reportSelfClsParameterName = true reportUnusedCallResult = false # allow function calls for side-effect only (like logic.check_acces) useLibraryCodeForTypes = true -reportGeneralTypeIssues = false +reportGeneralTypeIssues = true reportPropertyTypeMismatch = true reportWildcardImportFromLibrary = true reportUntypedClassDecorator = false # authenticator relies on repoze.who class-decorator @@ -122,13 +122,8 @@ reportInvalidStubStatement = true reportIncompleteStub = true reportUnsupportedDunderAll = true reportUnusedCoroutine = true -reportUnnecessaryTypeIgnoreComment = false +reportUnnecessaryTypeIgnoreComment = true reportMatchNotExhaustive = true -reportArgumentType = false -reportAssignmentType = false -reportAttributeAccessIssue = false -reportInvalidTypeForm = false -reportReturnType = false [tool.mypy] plugins = "sqlalchemy.ext.mypy.plugin"