From fa8d076e4fdda9e3c3261838a0aec19f985e1280 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julie=20Koubov=C3=A1?= Date: Tue, 15 Nov 2022 01:49:36 +0100 Subject: [PATCH] Dev container (#302) --- .devcontainer/devcontainer.json | 37 +++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..1be18e3 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,37 @@ +{ + "name": "ESPHome API Client Dev", + "image": "ghcr.io/esphome/aioesphomeapi-proto-builder:latest", + "extensions": [ + "ms-python.python", + "visualstudioexptteam.vscodeintellicode", + // yaml + "redhat.vscode-yaml", + // editorconfig + "editorconfig.editorconfig", + // protobuf + "pbkit.vscode-pbkit" + ], + "settings": { + "python.languageServer": "Pylance", + "python.pythonPath": "/usr/bin/python3", + "python.linting.pylintEnabled": true, + "python.linting.enabled": true, + "python.formatting.provider": "black", + "editor.formatOnPaste": false, + "editor.formatOnSave": true, + "editor.formatOnType": true, + "files.trimTrailingWhitespace": true, + "terminal.integrated.defaultProfile.linux": "bash", + "files.exclude": { + "**/.git": true, + "**/.DS_Store": true, + "**/*.pyc": { + "when": "$(basename).py" + }, + "**/__pycache__": true + }, + "files.associations": { + "**/.vscode/*.json": "jsonc" + } + } +} \ No newline at end of file