Skip to content

Commit 4a006cb

Browse files
committed
feat: update pyright config to exclude tests, broaden platform support, and enable standard type checking mode with stricter reports
1 parent 8600f02 commit 4a006cb

1 file changed

Lines changed: 28 additions & 23 deletions

File tree

pyrightconfig.json

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"node_modules",
99
"deprecated_javascript_version",
1010
"errors_py",
11-
"logs"
11+
"logs",
12+
"tests/**"
1213
],
1314
"extraPaths": [
1415
".",
@@ -20,42 +21,46 @@
2021
"./stream"
2122
],
2223
"pythonVersion": "3.9",
23-
"pythonPlatform": "Windows",
24-
"typeCheckingMode": "basic",
24+
"pythonPlatform": "All",
25+
"typeCheckingMode": "standard",
2526
"useLibraryCodeForTypes": true,
2627
"autoImportCompletions": true,
2728
"stubPath": "",
2829

2930
"reportMissingImports": "error",
30-
"reportMissingTypeStubs": "none",
3131
"reportUndefinedVariable": "error",
3232
"reportAssertAlwaysTrue": "error",
3333
"reportInvalidStringEscapeSequence": "error",
3434
"reportInvalidTypeVarUse": "error",
35-
"reportMissingTypeArgument": "none",
36-
"reportPrivateUsage": "none",
37-
"reportUnknownParameterType": "none",
38-
"reportUnknownArgumentType": "none",
39-
"reportUnknownLambdaType": "none",
40-
"reportUnknownVariableType": "none",
41-
"reportUnknownMemberType": "none",
42-
"reportMissingParameterType": "none",
43-
"reportUnnecessaryIsInstance": "none",
44-
"reportUnnecessaryCast": "warning",
45-
"reportUnnecessaryComparison": "warning",
4635
"reportConstantRedefinition": "error",
47-
"reportDuplicateImport": "warning",
36+
"reportGeneralTypeIssues": "error",
37+
"reportPropertyTypeMismatch": "error",
38+
"reportFunctionMemberAccess": "error",
39+
"reportIncompatibleMethodOverride": "error",
40+
"reportIncompatibleVariableOverride": "error",
41+
"reportInconsistentConstructor": "error",
42+
4843
"reportOptionalSubscript": "error",
4944
"reportOptionalMemberAccess": "error",
5045
"reportOptionalCall": "error",
5146
"reportOptionalIterable": "error",
5247
"reportOptionalContextManager": "error",
5348
"reportOptionalOperand": "error",
54-
"reportTypedDictNotRequiredAccess": "none",
55-
"reportGeneralTypeIssues": "error",
56-
"reportPropertyTypeMismatch": "error",
57-
"reportFunctionMemberAccess": "error",
58-
"reportIncompatibleMethodOverride": "error",
59-
"reportIncompatibleVariableOverride": "error",
60-
"reportInconsistentConstructor": "error"
49+
50+
"reportUnknownParameterType": "warning",
51+
"reportUnknownArgumentType": "warning",
52+
"reportUnknownLambdaType": "warning",
53+
"reportUnknownVariableType": "warning",
54+
"reportUnknownMemberType": "warning",
55+
56+
"reportMissingParameterType": "warning",
57+
"reportMissingTypeArgument": "warning",
58+
"reportMissingTypeStubs": "none",
59+
60+
"reportPrivateUsage": "warning",
61+
"reportUnnecessaryIsInstance": "warning",
62+
"reportUnnecessaryCast": "warning",
63+
"reportUnnecessaryComparison": "warning",
64+
"reportDuplicateImport": "warning",
65+
"reportTypedDictNotRequiredAccess": "warning"
6166
}

0 commit comments

Comments
 (0)