From 7ba1abec84cca8a62dd22b2261f7f64f8f0ddb8a Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Fri, 20 Jun 2025 08:50:54 -0500 Subject: [PATCH] pyright config --- conf/pyrightconfig.json | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 conf/pyrightconfig.json diff --git a/conf/pyrightconfig.json b/conf/pyrightconfig.json new file mode 100644 index 0000000..92822c7 --- /dev/null +++ b/conf/pyrightconfig.json @@ -0,0 +1,29 @@ +{ + // Specify which paths to check + "include": [ + "./ad-test/conf/apps/**" + ], + // "typeCheckingMode": "standard", + "typeCheckingMode": "basic", + // Be somewhat tolerant with regards to imperfect dependencies or types + "reportUnknownMemberType": "none", + "reportUnusedImport": "warning", + "reportMissingTypeStubs": "none", + "reportIncompleteStub": "none", + "reportUnknownVariableType": "none", + "reportUnknownParameterType": "warning", + "reportMissingTypeArgument": "warning", + "useLibraryCodeForTypes": true, // Homogeneous with pylance's default + // Add warnings for probable programming errors + "reportUnnecessaryTypeIgnoreComment": "warning", + "reportMissingParameterType": "warning", + "reportUnnecessaryComparison": "warning", + "reportUnnecessaryIsInstance": "warning", + "reportUnnecessaryCast": "warning", + "reportUnnecessaryContains": "warning", + "reportMatchNotExhaustive": "error", + "reportUnusedVariable": "warning", + "reportUnusedCoroutine": "warning", + "reportUnusedExpression": "warning", + "reportUnusedFunction": "warning" +} \ No newline at end of file