From f0e2db148a232c02390d0b773454369b9daa13d1 Mon Sep 17 00:00:00 2001 From: Ju4tCode <42488585+yanyongyu@users.noreply.github.com> Date: Fri, 22 Mar 2024 11:59:25 +0800 Subject: [PATCH] :wrench: update devcontainer config --- .devcontainer/devcontainer.json | 37 ++++++++++++++++----------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 0166c86..c23d56a 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -2,53 +2,52 @@ "name": "Default Linux Universal", "image": "mcr.microsoft.com/devcontainers/universal:2-linux", "features": { - "ghcr.io/devcontainers-contrib/features/poetry:1": {}, + "ghcr.io/devcontainers-contrib/features/poetry:2": {} }, "postCreateCommand": "poetry config virtualenvs.in-project true && poetry install && poetry run pre-commit install", "customizations": { "vscode": { "settings": { "python.analysis.diagnosticMode": "workspace", - "python.analysis.typeCheckingMode": "basic", "ruff.organizeImports": false, "[python]": { - "editor.defaultFormatter": "ms-python.black-formatter", + "editor.defaultFormatter": "charliermarsh.ruff", "editor.codeActionsOnSave": { - "source.fixAll.ruff": true, - "source.organizeImports": true, - }, + "source.fixAll": "explicit", + "source.organizeImports": "explicit" + } }, "[javascript]": { - "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[html]": { - "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[typescript]": { - "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[javascriptreact]": { - "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[typescriptreact]": { - "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.defaultFormatter": "esbenp.prettier-vscode" }, "files.exclude": { - "**/__pycache__": true, + "**/__pycache__": true }, "files.watcherExclude": { "**/target/**": true, - "**/__pycache__": true, - }, + "**/__pycache__": true + } }, "extensions": [ "ms-python.python", "ms-python.vscode-pylance", "ms-python.isort", - "ms-python.black-formatter", + "charliermarsh.ruff", "EditorConfig.EditorConfig", - "esbenp.prettier-vscode", - ], - }, - }, + "esbenp.prettier-vscode" + ] + } + } }