mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
Update vscode recommended settings to not cleanup noqa'd unused imports (#13363)
This commit is contained in:
5
.vscode/settings.default.json
vendored
5
.vscode/settings.default.json
vendored
@@ -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