From be6cf6323e8320a94088bbdc94b00d3edd84e57d Mon Sep 17 00:00:00 2001 From: blakeNaccarato Date: Sat, 21 Oct 2023 23:16:32 -0700 Subject: [PATCH] Sort imports with isort in notebooks, and ruff outside of them. --- .vscode/settings.json | 4 ++-- boiler.code-workspace | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 2a091c8..f12585f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -22,11 +22,11 @@ "source.unusedImports" ], "editor.codeActionsOnSave": { - "source.organizeImports": "always", + "source.organizeImports.ruff": "always", "source.fixAll": "always" }, "notebook.codeActionsOnSave": { - "source.organizeImports": "explicit", + "source.organizeImports.isort": "explicit", "source.fixAll": "explicit" }, "python.analysis.completeFunctionParens": false, // Buggy diff --git a/boiler.code-workspace b/boiler.code-workspace index 01813ff..5e6292a 100644 --- a/boiler.code-workspace +++ b/boiler.code-workspace @@ -18,7 +18,7 @@ "python.languageServer": "Pylance", "explorer.fileNesting.expand": false, "notebook.codeActionsOnSave": { - "source.organizeImports": "explicit", + "source.organizeImports.isort": "explicit", "source.fixAll": "explicit" }, "ruff.importStrategy": "fromEnvironment",