mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-11 07:39:12 +08:00
Update vscode recommended settings to not cleanup noqa'd unused imports (#13363)
This commit is contained in:
1 parent
33d1b169c1
commit
9f28171658
1 file changed
+3
-2
Vendored
+3
-2
@@ -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}"
|
||||
|
||||
Reference in new issue
Block a user