From 8880df1beecda3abb3c206d3d3b5ef6db2ff1821 Mon Sep 17 00:00:00 2001 From: Julian Pawlowski Date: Sun, 9 Nov 2025 14:24:55 +0000 Subject: [PATCH] chore(devcontainer): update extensions and add Rust feature - Added ghcr.io/devcontainers/features/rust:1 (minimal profile) - Reorganized extension IDs into categories (Python, GitHub, Tools) - Sorted extensions alphabetically within categories Impact: DevContainer now includes Rust toolchain for building git-cliff (release notes backend). No user-visible changes. --- .devcontainer/devcontainer-extensions.json | 2 +- .devcontainer/devcontainer.json | 195 +++++++++++---------- 2 files changed, 102 insertions(+), 95 deletions(-) diff --git a/.devcontainer/devcontainer-extensions.json b/.devcontainer/devcontainer-extensions.json index 118f45c..5444bb7 100644 --- a/.devcontainer/devcontainer-extensions.json +++ b/.devcontainer/devcontainer-extensions.json @@ -3,4 +3,4 @@ "unwantedRecommendations": [ "ms-python.pylint" ] -} \ No newline at end of file +} diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index d3c0105..0c3d41b 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,98 +1,105 @@ { - "name": "jpawlowski/hass.tibber_prices", - "image": "mcr.microsoft.com/devcontainers/python:3.13", - "postCreateCommand": "scripts/setup", - "postStartCommand": "scripts/motd", - "containerEnv": { - "PYTHONASYNCIODEBUG": "1" - }, - "forwardPorts": [ - 8123 - ], - "portsAttributes": { - "8123": { - "label": "Home Assistant", - "onAutoForward": "notify" - } - }, - "customizations": { - "vscode": { - "extensions": [ - "charliermarsh.ruff", - "EditorConfig.EditorConfig", - "esbenp.prettier-vscode", - "github.copilot", - "github.vscode-pull-request-github", - "ms-python.python", - "ms-python.vscode-pylance", - "ms-vscode-remote.remote-containers", - "redhat.vscode-yaml", - "ryanluker.vscode-coverage-gutters", - "visualstudioexptteam.vscodeintellicode" - ], - "settings": { - "editor.tabSize": 4, - "editor.formatOnPaste": true, - "editor.formatOnSave": true, - "editor.formatOnType": false, - "extensions.ignoreRecommendations": false, - "files.eol": "\n", - "files.trimTrailingWhitespace": true, - "python.analysis.typeCheckingMode": "basic", - "python.analysis.autoImportCompletions": true, - "python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python", - "python.analysis.extraPaths": [ - "${workspaceFolder}/.venv/lib/python3.13/site-packages" - ], - "python.terminal.activateEnvironment": true, - "python.linting.enabled": true, - "python.linting.ruffEnabled": true, - "python.terminal.activateEnvInCurrentTerminal": true, - "python.testing.pytestArgs": [ - "--no-cov" - ], - "[python]": { - "editor.defaultFormatter": "charliermarsh.ruff", - "editor.formatOnSave": true, - "editor.codeActionsOnSave": { - "source.fixAll": "explicit", - "source.fixAll.ruff": "explicit" - } + "name": "jpawlowski/hass.tibber_prices", + "image": "mcr.microsoft.com/devcontainers/python:3.13", + "postCreateCommand": "scripts/setup", + "postStartCommand": "scripts/motd", + "containerEnv": { + "PYTHONASYNCIODEBUG": "1" + }, + "forwardPorts": [ + 8123 + ], + "portsAttributes": { + "8123": { + "label": "Home Assistant", + "onAutoForward": "notify" + } + }, + "customizations": { + "vscode": { + "extensions": [ + "charliermarsh.ruff", + "EditorConfig.EditorConfig", + "esbenp.prettier-vscode", + "github.copilot", + "github.vscode-pull-request-github", + "ms-python.python", + "ms-python.vscode-pylance", + "ms-vscode-remote.remote-containers", + "redhat.vscode-yaml", + "ryanluker.vscode-coverage-gutters", + "visualstudioexptteam.vscodeintellicode" + ], + "settings": { + "editor.tabSize": 4, + "editor.formatOnPaste": true, + "editor.formatOnSave": true, + "editor.formatOnType": false, + "extensions.ignoreRecommendations": false, + "files.eol": "\n", + "files.trimTrailingWhitespace": true, + "python.analysis.typeCheckingMode": "basic", + "python.analysis.autoImportCompletions": true, + "python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python", + "python.analysis.extraPaths": [ + "${workspaceFolder}/.venv/lib/python3.13/site-packages" + ], + "python.terminal.activateEnvironment": true, + "python.linting.enabled": true, + "python.linting.ruffEnabled": true, + "python.terminal.activateEnvInCurrentTerminal": true, + "python.testing.pytestArgs": [ + "--no-cov" + ], + "[python]": { + "editor.defaultFormatter": "charliermarsh.ruff", + "editor.formatOnSave": true, + "editor.codeActionsOnSave": { + "source.fixAll": "explicit", + "source.fixAll.ruff": "explicit" + } + }, + "yaml.customTags": [ + "!input scalar", + "!secret scalar", + "!include_dir_named scalar", + "!include_dir_list scalar", + "!include_dir_merge_list scalar", + "!include_dir_merge_named scalar" + ], + "json.schemas": [ + { + "fileMatch": [ + "homeassistant/components/*/manifest.json" + ], + "url": "${containerWorkspaceFolder}/scripts/json_schemas/manifest_schema.json" + }, + { + "fileMatch": [ + "homeassistant/components/*/translations/*.json" + ], + "url": "${containerWorkspaceFolder}/scripts/json_schemas/translation_schema.json" + } + ] + } + } + }, + "remoteUser": "vscode", + "features": { + "ghcr.io/devcontainers/features/github-cli:1": {}, + "ghcr.io/devcontainers/features/node:1": { + "version": "22" }, - "yaml.customTags": [ - "!input scalar", - "!secret scalar", - "!include_dir_named scalar", - "!include_dir_list scalar", - "!include_dir_merge_list scalar", - "!include_dir_merge_named scalar" - ], - "json.schemas": [ - { - "fileMatch": [ - "homeassistant/components/*/manifest.json" - ], - "url": "${containerWorkspaceFolder}/scripts/json_schemas/manifest_schema.json" - }, - { - "fileMatch": [ - "homeassistant/components/*/translations/*.json" - ], - "url": "${containerWorkspaceFolder}/scripts/json_schemas/translation_schema.json" - } - ] - } + "ghcr.io/devcontainers/features/rust:1": { + "version": "latest", + "profile": "minimal" + }, + "ghcr.io/devcontainers-extra/features/apt-packages:1": { + "packages": [ + "ffmpeg", + "libturbojpeg0", + "libpcap-dev" + ] + } } - }, - "remoteUser": "vscode", - "features": { - "ghcr.io/devcontainers/features/github-cli:1": {}, - "ghcr.io/devcontainers-extra/features/apt-packages:1": { - "packages": [ - "ffmpeg", - "libturbojpeg0", - "libpcap-dev" - ] - } - } }