From f2d56e7f5235fd8b5cf8928bb0949f8a9f699a17 Mon Sep 17 00:00:00 2001 From: Bastian Neumann Date: Tue, 23 Jul 2024 18:03:43 +0000 Subject: [PATCH 1/3] devcontainer does not need rust why was that there in the first place? --- .devcontainer.json | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.devcontainer.json b/.devcontainer.json index 794a96c..77a6b19 100644 --- a/.devcontainer.json +++ b/.devcontainer.json @@ -33,8 +33,5 @@ } } }, - "remoteUser": "vscode", - "features": { - "ghcr.io/devcontainers/features/rust:1": {} - } + "remoteUser": "vscode" } From 840da2d9535490a69f97797b60ff733c2d1328f0 Mon Sep 17 00:00:00 2001 From: Bastian Neumann Date: Tue, 23 Jul 2024 18:23:02 +0000 Subject: [PATCH 2/3] remove unused linting config and add ruff plugin --- .devcontainer.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.devcontainer.json b/.devcontainer.json index 77a6b19..730cf7c 100644 --- a/.devcontainer.json +++ b/.devcontainer.json @@ -13,6 +13,7 @@ "vscode": { "extensions": [ "ms-python.python", + "charliermarsh.ruff", "github.vscode-pull-request-github", "ryanluker.vscode-coverage-gutters", "ms-python.vscode-pylance" @@ -22,8 +23,6 @@ "editor.tabSize": 4, "python.pythonPath": "/usr/bin/python3", "python.analysis.autoSearchPaths": false, - "python.linting.pylintEnabled": true, - "python.linting.enabled": true, "python.formatting.provider": "black", "python.formatting.blackPath": "/usr/local/py-utils/bin/black", "editor.formatOnPaste": false, From 48ce62427ba59132bb70146d7e41e5dfb3b71d26 Mon Sep 17 00:00:00 2001 From: Bastian Neumann Date: Tue, 23 Jul 2024 18:23:21 +0000 Subject: [PATCH 3/3] update type to debugpy --- .vscode/launch.json | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index cc5337a..5efd584 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,10 +5,8 @@ { // Example of attaching to local debug server "name": "Python: Attach Local", - "type": "python", + "type": "debugpy", "request": "attach", - "port": 5678, - "host": "localhost", "pathMappings": [ { "localRoot": "${workspaceFolder}", @@ -19,10 +17,8 @@ { // Example of attaching to my production server "name": "Python: Attach Remote", - "type": "python", + "type": "debugpy", "request": "attach", - "port": 5678, - "host": "homeassistant.local", "pathMappings": [ { "localRoot": "${workspaceFolder}",