From 5e4e4fbc197d8c607a6237826ae66b5644196aca Mon Sep 17 00:00:00 2001 From: Daniele Briggi Date: Thu, 13 Jun 2024 13:20:03 +0000 Subject: [PATCH] feat: add devcontainer for py 3.11 --- .devcontainer/py3.11/devcontainer.json | 38 +++++++++++++++++++ .devcontainer/{ => py3.6-dev}/Dockerfile | 0 .../{ => py3.6-dev}/devcontainer.json | 5 ++- 3 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 .devcontainer/py3.11/devcontainer.json rename .devcontainer/{ => py3.6-dev}/Dockerfile (100%) rename .devcontainer/{ => py3.6-dev}/devcontainer.json (94%) diff --git a/.devcontainer/py3.11/devcontainer.json b/.devcontainer/py3.11/devcontainer.json new file mode 100644 index 0000000..54298b9 --- /dev/null +++ b/.devcontainer/py3.11/devcontainer.json @@ -0,0 +1,38 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/python +{ + "name": "Python 3.11", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/python:3.11", + "features": { + "ghcr.io/warrenbuckley/codespace-features/sqlite:1": {} + }, + + // Features to add to the dev container. More info: https://containers.dev/features. + // "features": {}, + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Use 'postCreateCommand' to run commands after the container is created. + // "postCreateCommand": "pip3 install --user -r requirements.txt", + + // Configure tool-specific properties. + "customizations": { + "vscode": { + "extensions": [ + "littlefoxteam.vscode-python-test-adapter", + "jkillian.custom-local-formatters", + "ms-python.vscode-pylance", + "ms-python.python", + "ms-python.debugpy", + "ms-python.black-formatter", + "ms-python.isort", + "ms-toolsai.jupyter" + ] + } + } + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" +} diff --git a/.devcontainer/Dockerfile b/.devcontainer/py3.6-dev/Dockerfile similarity index 100% rename from .devcontainer/Dockerfile rename to .devcontainer/py3.6-dev/Dockerfile diff --git a/.devcontainer/devcontainer.json b/.devcontainer/py3.6-dev/devcontainer.json similarity index 94% rename from .devcontainer/devcontainer.json rename to .devcontainer/py3.6-dev/devcontainer.json index a6e1021..ad4bb43 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/py3.6-dev/devcontainer.json @@ -1,7 +1,7 @@ // For format details, see https://aka.ms/devcontainer.json. For config options, see the // README at: https://github.com/devcontainers/templates/tree/main/src/python { - "name": "Python 3", + "name": "Python 3.6 For development", // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile "build": { "dockerfile": "Dockerfile" @@ -35,7 +35,8 @@ "ms-python.python", "ms-python.debugpy", "ms-python.black-formatter", - "ms-python.isort" + "ms-python.isort", + "ms-toolsai.jupyter" ] } }