From 9fcd8b707a9271fec81e7d50731a33d952d10806 Mon Sep 17 00:00:00 2001 From: Tarrailt Date: Sat, 28 Dec 2024 16:13:52 +0800 Subject: [PATCH] :wrench: add devcontainer.json --- .devcontainer/devcontainer.json | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..ff33b5d --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,32 @@ +{ + "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 venv create && 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", + "tamasfe.even-better-toml", + "wakatime.vscode-wakatime" + ] + } + } +} \ No newline at end of file