Skip to content

Commit fb3488b

Browse files
author
Dylan Huang
committed
fix type checks in IDE
1 parent b13b630 commit fb3488b

File tree

3 files changed

+9
-31
lines changed

3 files changed

+9
-31
lines changed

.vscode/extensions.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"recommendations": [
3+
"anysphere.cursorpyright",
4+
"ms-python.python",
5+
"ms-python.debugpy"
6+
]
7+
}

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
"python.testing.autoTestDiscoverOnSaveEnabled": true,
66
"python.defaultInterpreterPath": "./.venv/bin/python",
77
"python.testing.cwd": "${workspaceFolder}",
8-
"editor.defaultFormatter": "ms-python.black-formatter"
8+
"cursorpyright.analysis.diagnosticMode": "openFilesOnly"
99
}

pyproject.toml

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -204,38 +204,9 @@ known-first-party = ["eval_protocol"]
204204
combine-as-imports = true
205205

206206
[tool.pyright]
207-
typeCheckingMode = "basic"
207+
typeCheckingMode = "recommended"
208208
pythonVersion = "3.10"
209-
reportMissingImports = "none"
210-
reportMissingTypeStubs = "none"
211-
reportMissingModuleSource = "none"
212209
include = ["eval_protocol", "examples", "tests"]
213210
exclude = ["vite-app", "vendor"]
214211
# Ignore diagnostics for vendored generator code
215212
ignore = ["versioneer.py"]
216-
# Relax noisy diagnostics commonly triggered in tests and dynamic libs
217-
reportAttributeAccessIssue = "none"
218-
reportCallIssue = "none"
219-
reportUnknownMemberType = "none"
220-
reportUnknownVariableType = "none"
221-
reportPossiblyUnboundVariable = "none"
222-
# Additional suppressions per request
223-
reportOptionalMemberAccess = "none"
224-
reportIndexIssue = "none"
225-
reportReturnType = "none"
226-
reportOptionalCall = "none"
227-
reportGeneralTypeIssues = "none"
228-
reportOperatorIssue = "none"
229-
reportOptionalSubscript = "none"
230-
reportUnsupportedDunderAll = "none"
231-
reportOptionalContextManager = "none"
232-
reportInvalidTypeForm = "none"
233-
reportRedeclaration = "none"
234-
reportUndefinedVariable = "none"
235-
reportPrivateImportUsage = "none"
236-
reportOptionalIterable = "none"
237-
# Make incompatibilities and argument types warnings instead of errors for now
238-
# and suppress warnings output entirely
239-
reportIncompatibleVariableOverride = "none"
240-
reportArgumentType = "none"
241-
reportAssignmentType = "none"

0 commit comments

Comments
 (0)