Update vscode recommended settings to not cleanup noqa'd unused imports (#13363)

This commit is contained in:
Avasam
2025-01-04 05:37:02 -05:00
committed by GitHub
parent 33d1b169c1
commit 9f28171658

View File

@@ -70,13 +70,14 @@
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.codeActionsOnSave": {
// Let Ruff lint fixes handle imports
"source.organizeImports": "never"
"source.organizeImports": "never",
"source.unusedImports": "never"
}
},
// python.analysis is Pylance (pyright) configurations
"python.analysis.fixAll": [
"source.unusedImports"
// Explicitly omiting "source.convertImportFormat", some stubs use relative imports
// Explicitly omiting "source.unusedImports", Let Ruff lint fixes handle imports
],
"python.analysis.typeshedPaths": [
"${workspaceFolder}"