From 15ab2478e9e0a484b79dba3a2d219351bfe8eb30 Mon Sep 17 00:00:00 2001 From: Tarrailt Date: Thu, 8 Feb 2024 18:06:00 +0800 Subject: [PATCH] :wrench: add devcontainer.json --- .devcontainer/devcontainer.json | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..263db493 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,30 @@ +{ + "name": "Default Linux Universal", + "image": "mcr.microsoft.com/devcontainers/universal:2-linux", + "features": { + "ghcr.io/devcontainers-contrib/features/pdm:2": {} + }, + "postCreateCommand": "pdm config venv.in_project true && pdm sync -G:all", + "customizations": { + "vscode": { + "settings": { + "python.analysis.diagnosticMode": "workspace", + "python.analysis.typeCheckingMode": "basic", + "files.exclude": { + "**/__pycache__": true + }, + "files.watcherExclude": { + "**/target/**": true, + "**/__pycache__": true + } + }, + "extensions": [ + "ms-python.python", + "ms-python.vscode-pylance", + "ms-python.isort", + "ms-python.black-formatter", + "usernamehw.errorlens" + ] + } + } +} \ No newline at end of file