From cc38b62241257e4ef4b28138a9f5e798108c9310 Mon Sep 17 00:00:00 2001 From: Trevor Guidry Date: Wed, 20 May 2026 16:47:07 -0500 Subject: [PATCH] SERVER-124516 enable succeeding pyright rules (#54168) GitOrigin-RevId: cac8944f171d71db62344271fbf882c54fc1b168 --- pyproject.toml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 5b282d4731e..509275eeac7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -267,18 +267,18 @@ pythonVersion = "3.13" reportInvalidTypeForm = "none" reportMissingImports = "none" reportUndefinedVariable = "none" -reportAbstractUsage = "none" -reportAssertTypeFailure = "none" -reportInconsistentOverload = "none" +reportAbstractUsage = "error" +reportAssertTypeFailure = "error" +reportInconsistentOverload = "error" reportInvalidTypeArguments = "none" -reportNoOverloadImplementation = "none" +reportNoOverloadImplementation = "error" reportOptionalCall = "none" -reportOptionalContextManager = "none" +reportOptionalContextManager = "error" reportRedeclaration = "none" reportUnboundVariable = "none" reportUnhashable = "none" -reportUnusedCoroutine = "none" -reportUnusedExcept = "none" +reportUnusedCoroutine = "error" +reportUnusedExcept = "error" # These should be set to "warning" or "error" for standard checks reportArgumentType = "none" @@ -298,18 +298,18 @@ reportPrivateImportUsage = "none" reportFunctionMemberAccess = "none" reportIncompatibleMethodOverride = "none" reportIncompatibleVariableOverride = "none" -reportOverlappingOverload = "none" +reportOverlappingOverload = "error" reportPossiblyUnboundVariable = "none" # These are additional checks for strict mode reportMissingTypeStubs = "none" -reportAssertAlwaysTrue = "none" -reportInvalidStringEscapeSequence = "none" -reportInvalidTypeVarUse = "none" +reportAssertAlwaysTrue = "error" +reportInvalidStringEscapeSequence = "error" +reportInvalidTypeVarUse = "error" reportSelfClsParameterName = "none" -reportUnsupportedDunderAll = "none" -reportUnusedExpression = "none" -reportWildcardImportFromLibrary = "none" +reportUnsupportedDunderAll = "error" +reportUnusedExpression = "error" +reportWildcardImportFromLibrary = "error" reportConstantRedefinition = "none"