Skip to content

Instantly share code, notes, and snippets.

@luochen1990
Created August 22, 2023 04:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luochen1990/e877ff5340e2138af6fdca52e01a8b63 to your computer and use it in GitHub Desktop.
Save luochen1990/e877ff5340e2138af6fdca52e01a8b63 to your computer and use it in GitHub Desktop.
VSCode Python strict mode config
{
"files.trimTrailingWhitespace": true,
"python.languageServer": "Pylance",
"python.analysis.typeCheckingMode": "strict",
"python.analysis.diagnosticSeverityOverrides": {
"reportImportCycles": "warning",
"reportUnnecessaryComparison": "information",
"reportUnnecessaryIsInstance": "information",
"reportUnnecessaryContains": "information",
"reportUnusedImport": "information",
"reportUnusedVariable": "warning",
"reportUnusedCallResult": "none",
"reportUnusedFunction": "warning",
"reportUnusedClass": "warning",
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment