From 3f777d76eb62dd209f7051d9541beb4e8574e5a3 Mon Sep 17 00:00:00 2001 From: Julian Pawlowski Date: Wed, 23 Apr 2025 11:41:53 +0000 Subject: [PATCH] update devcontainer --- .../.devcontainer.json | 31 ++++++++++++++++--- 1 file changed, 27 insertions(+), 4 deletions(-) rename .devcontainer.json => .devcontainer/.devcontainer.json (55%) diff --git a/.devcontainer.json b/.devcontainer/.devcontainer.json similarity index 55% rename from .devcontainer.json rename to .devcontainer/.devcontainer.json index e21ec29..11d462a 100644 --- a/.devcontainer.json +++ b/.devcontainer/.devcontainer.json @@ -2,6 +2,9 @@ "name": "jpawlowski/hass.tibber_prices", "image": "mcr.microsoft.com/devcontainers/python:3.13", "postCreateCommand": "scripts/setup", + "containerEnv": { + "PYTHONASYNCIODEBUG": "1" + }, "forwardPorts": [ 8123 ], @@ -17,19 +20,38 @@ "charliermarsh.ruff", "github.vscode-pull-request-github", "ms-python.python", + "ms-python.pylint", "ms-python.vscode-pylance", - "ryanluker.vscode-coverage-gutters" + "ryanluker.vscode-coverage-gutters", + "visualstudioexptteam.vscodeintellicode", + "redhat.vscode-yaml", + "esbenp.prettier-vscode", + "github.copilot", + "ms-vscode-remote.remote-containers" ], "settings": { - "files.eol": "\n", "editor.tabSize": 4, - "editor.formatOnPaste": true, + "editor.formatOnPaste": false, "editor.formatOnSave": true, - "editor.formatOnType": false, + "editor.formatOnType": true, + "files.eol": "\n", "files.trimTrailingWhitespace": true, "python.analysis.typeCheckingMode": "basic", "python.analysis.autoImportCompletions": true, "python.defaultInterpreterPath": "/usr/local/bin/python", + "pylint.importStrategy": "fromEnvironment", + "python.terminal.activateEnvInCurrentTerminal": true, + "python.testing.pytestArgs": [ + "--no-cov" + ], + "yaml.customTags": [ + "!input scalar", + "!secret scalar", + "!include_dir_named scalar", + "!include_dir_list scalar", + "!include_dir_merge_list scalar", + "!include_dir_merge_named scalar" + ], "[python]": { "editor.defaultFormatter": "charliermarsh.ruff" } @@ -38,6 +60,7 @@ }, "remoteUser": "vscode", "features": { + "ghcr.io/devcontainers/features/github-cli:1": {}, "ghcr.io/devcontainers-extra/features/apt-packages:1": { "packages": [ "ffmpeg",