From f04e24bff710ca7a66511d6f88a6399da08dfafa Mon Sep 17 00:00:00 2001 From: Aaron <7063649+ahcode0919@users.noreply.github.com> Date: Sat, 5 Sep 2026 09:25:04 -0700 Subject: [PATCH] Update docker container --- .devcontainer/Dockerfile | 4 ++-- .devcontainer/devcontainer.json | 25 +++++++++++++++++-------- .vscode/extensions.json | 1 + 3 files changed, 20 insertions(+), 10 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 60a12a6..e637b83 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,8 +1,8 @@ # See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.238.0/containers/python-3/.devcontainer/base.Dockerfile # [Choice] Python version (use -bullseye variants on local arm64/Apple Silicon): 3, 3.10, 3.9, 3.8, 3.7, 3.6, 3-bullseye, 3.10-bullseye, 3.9-bullseye, 3.8-bullseye, 3.7-bullseye, 3.6-bullseye, 3-buster, 3.10-buster, 3.9-buster, 3.8-buster, 3.7-buster, 3.6-buster -ARG VARIANT="3.14.2-bullseye" -FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT} +ARG VARIANT="3.14-bookworm" +FROM mcr.microsoft.com/devcontainers/python:${VARIANT} # Just Installation COPY --from=ghcr.io/casey/just:latest /just /usr/local/bin/ diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 9e64a28..19fdd6c 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,16 +1,12 @@ // For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: -// https://github.com/microsoft/vscode-dev-containers/tree/v0.238.0/containers/python-3 +// https://github.com/devcontainers/images/tree/main/src/ { "name": "Python 3", "build": { "dockerfile": "Dockerfile", "context": "..", "args": { - // Update 'VARIANT' to pick a Python version: 3, 3.10, 3.9, 3.8, 3.7, 3.6 - // Append -bullseye or -buster to pin to an OS version. - // Use -bullseye variants on local on arm64/Apple Silicon. - "VARIANT": "3.14-bullseye", - // Options + "VARIANT": "3.14-bookworm", "NODE_VERSION": "none" } }, @@ -22,14 +18,27 @@ // Set *default* container specific settings.json values on container create. "settings": { "python.autoComplete.extraPaths": ["/workspaces"], - "python.defaultInterpreterPath": "/usr/local/bin/python" + "python.defaultInterpreterPath": "/usr/local/bin/python", + "editor.tabSize": 4, + "files.autoSave": "afterDelay", + "files.trimTrailingWhitespace": true, + "terminal.integrated.localEchoStyle": "dim", + "[python]": { + "editor.defaultFormatter": "charliermarsh.ruff", + "editor.formatOnSave": true, + "editor.codeActionsOnSave": { + "source.fixAll.ruff": "explicit", + "source.organizeImports.ruff": "explicit" + } }, // Add the IDs of extensions you want installed when the container is created. "extensions": [ + "Anthropic.claude-code", + "DavidAnson.vscode-markdownlint", "ms-python.python", "ms-python.vscode-pylance", - "Anthropic.claude-code", + "ms-vscode-remote.remote-containers", "charliermarsh.ruff" ] } diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 755c4be..271b799 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,5 +1,6 @@ { "recommendations": [ + "Anthropic.claude-code", "DavidAnson.vscode-markdownlint", "ms-python.python", "ms-python.vscode-pylance",