From aeb6b2d634db1b6909c33569ba8595e4902da561 Mon Sep 17 00:00:00 2001 From: Yordan Suarez Date: Mon, 9 Aug 2021 23:21:54 -0400 Subject: [PATCH] update development files --- .devcontainer/devcontainer.json | 20 +++++++----- .vscode/settings.json | 3 ++ .vscode/tasks.json | 54 +++++++-------------------------- 3 files changed, 27 insertions(+), 50 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 906fb42..fab8c1f 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,18 +1,24 @@ // See https://aka.ms/vscode-remote/devcontainer.json for format details. { + "image": "ludeeus/container:integration-debian", + "name": "Blueprint integration development", "context": "..", - "dockerFile": "Dockerfile", - "appPort": "8124:8123", - "runArgs": [ - "-e", - "GIT_EDTIOR='code --wait'" + "appPort": [ + "9123:8123" ], + "postCreateCommand": "container install", "extensions": [ "ms-python.python", - "tabnine.tabnine-vscode" + "github.vscode-pull-request-github", + "ryanluker.vscode-coverage-gutters", + "ms-python.vscode-pylance" ], "settings": { - "python.pythonPath": "/usr/local/bin/python", + "files.eol": "\n", + "editor.tabSize": 4, + "terminal.integrated.shell.linux": "/bin/bash", + "python.pythonPath": "/usr/bin/python3", + "python.analysis.autoSearchPaths": false, "python.linting.pylintEnabled": true, "python.linting.enabled": true, "python.formatting.provider": "black", diff --git a/.vscode/settings.json b/.vscode/settings.json index a04b218..a3d535d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,7 @@ { + "python.linting.pylintEnabled": true, + "python.linting.enabled": true, + "python.pythonPath": "/usr/local/bin/python", "files.associations": { "*.yaml": "home-assistant" } diff --git a/.vscode/tasks.json b/.vscode/tasks.json index f0c4579..d1a0ae7 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -2,59 +2,27 @@ "version": "2.0.0", "tasks": [ { - "label": "Start Home Assistant on port 8124", + "label": "Run Home Assistant on port 9123", "type": "shell", - "command": "source .devcontainer/custom_component_helper", - "group": { - "kind": "test", - "isDefault": true, - }, - "presentation": { - "reveal": "always", - "panel": "new" - }, + "command": "container start", + "problemMatcher": [] + }, + { + "label": "Run Home Assistant configuration against /config", + "type": "shell", + "command": "container check", "problemMatcher": [] }, { "label": "Upgrade Home Assistant to latest dev", "type": "shell", - "command": "source .devcontainer/custom_component_helper && UpdgradeHomeAssistantDev", - "group": { - "kind": "test", - "isDefault": true, - }, - "presentation": { - "reveal": "always", - "panel": "new" - }, + "command": "container install", "problemMatcher": [] }, { - "label": "Set Home Assistant Version", + "label": "Install a specific version of Home Assistant", "type": "shell", - "command": "source .devcontainer/custom_component_helper && SetHomeAssistantVersion", - "group": { - "kind": "test", - "isDefault": true, - }, - "presentation": { - "reveal": "always", - "panel": "new" - }, - "problemMatcher": [] - }, - { - "label": "Home Assistant Config Check", - "type": "shell", - "command": "source .devcontainer/custom_component_helper && HomeAssistantConfigCheck", - "group": { - "kind": "test", - "isDefault": true, - }, - "presentation": { - "reveal": "always", - "panel": "new" - }, + "command": "container set-version", "problemMatcher": [] } ]