From b6fe2a28ebdb394e3e4d0a4387889a0c08ee49f7 Mon Sep 17 00:00:00 2001 From: Akio Taniguchi Date: Thu, 25 Apr 2024 16:30:26 -0400 Subject: [PATCH] #3 Add devcontainer --- .devcontainer/devcontainer.json | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..34db287 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,33 @@ +{ + "name": "b4rpipe", + "image": "python:3.8", + "runArgs": [ + "--name=b4rpipe", + "--platform=linux/amd64" + ], + "containerEnv": { + "POETRY_VIRTUALENVS_CREATE": "false" + }, + "onCreateCommand": "pip install poetry", + "postCreateCommand": "poetry install", + "customizations": { + "vscode": { + "extensions": [ + "github.vscode-pull-request-github", + "mhutchie.git-graph", + "ms-python.python", + "tamasfe.even-better-toml" + ], + "settings": { + "files.insertFinalNewline": true, + "files.trimTrailingWhitespace": true, + "[python]": { + "editor.formatOnSave": true, + "editor.insertSpaces": true, + "editor.tabSize": 4, + "python.languageServer": "Pylance" + } + } + } + } +}