esphome-aioesphomeapi/.devcontainer/devcontainer.json

44 lines
1.5 KiB
JSON

{
"name": "ESPHome API Client Dev",
"image": "ghcr.io/esphome/aioesphomeapi-proto-builder:latest",
"features": {
"ghcr.io/devcontainers/features/github-cli:1": {}
},
"customizations": {
"vscode": {
"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.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"
}
}
}
},
"postCreateCommand": "pip3 install -e ."
}