From 4f7e7082552a60c5bc52bdafeece5781d2bf3dc6 Mon Sep 17 00:00:00 2001 From: Lukas Kucharczyk Date: Sun, 11 Aug 2024 17:23:59 +0200 Subject: [PATCH] vscode: replace black with ruff --- .vscode/extensions.json | 2 +- .vscode/settings.json | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.vscode/extensions.json b/.vscode/extensions.json index cedc387..743b006 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,6 +1,6 @@ { "recommendations": [ - "ms-python.black-formatter", + "charliermarsh.ruff", "ms-python.python", "ms-python.vscode-pylance", "ms-python.debugpy", diff --git a/.vscode/settings.json b/.vscode/settings.json index c23f1c0..a62ba18 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -6,9 +6,14 @@ "python.testing.pytestEnabled": true, "python.analysis.typeCheckingMode": "strict", "[python]": { - "editor.defaultFormatter": "ms-python.black-formatter", - "editor.formatOnSave": true + "editor.defaultFormatter": "charliermarsh.ruff", + "editor.formatOnSave": true, + "editor.codeActionsOnSave": { + "source.fixAll": "explicit", + "source.organizeImports": "explicit" + }, }, + "ruff.path": ["/nix/store/s3q6qc2954x62bkcs9dwaxyiqchl7j01-ruff-0.5.6/bin/ruff"], "tailwind-fold.supportedLanguages": [ "html", "typescriptreact",