Skip to content
Snippets Groups Projects
Commit afdc10e3 authored by Thibaut DE SAIVRE's avatar Thibaut DE SAIVRE
Browse files

add more settings for python pylance

parent 8b6e3e3e
No related branches found
No related tags found
No related merge requests found
......@@ -14,9 +14,23 @@
},
"python.analysis.typeCheckingMode": "strict", // or "strict" : use stricter python type checking
// Deactivate some warnings because there are many python libs that do not respect strict typing
"python.analysis.diagnosticSeverityOverrides": {
"reportMissingTypeStubs": "none", // Scipy does not have type stubs
"reportUnknownMemberType": "none", // Member types are not complete for numpy
"reportUnknownVariableType": "none", // Skimage.io has unknown variable types
"reportUnknownArgumentType": "none",
"reportUnknownParameterType": "none", // Disable warnings when a type is partially unknown
"reportUnknownLambdaType": "none",
// Set severity to Warning
"reportUnusedVariable": "warning",
"reportMissingParameterType": "warning",
"reportGeneralTypeIssues": "none"
},
// Add explicit hints overlays for arguments, return types, variable types...
"python.analysis.inlayHints.functionReturnTypes": true,
"python.analysis.inlayHints.variableTypes": true,
"python.analysis.inlayHints.variableTypes": false, // Deactivate variable type inlays (they clutter the view)
"python.analysis.inlayHints.pytestParameters": true,
"python.analysis.inlayHints.callArgumentNames": "all"
"python.analysis.inlayHints.callArgumentNames": "partial" // Do not show argument names when the variable has the same name
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment