From 9f28171658b9ca6c32a7cb93fbb99fc92b17858b Mon Sep 17 00:00:00 2001 From: Avasam Date: Sat, 4 Jan 2025 05:37:02 -0500 Subject: [PATCH] Update vscode recommended settings to not cleanup noqa'd unused imports (#13363) --- .vscode/settings.default.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.default.json b/.vscode/settings.default.json index 84c81614f181..b7005630a4e3 100644 --- a/.vscode/settings.default.json +++ b/.vscode/settings.default.json @@ -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}"