2020-04-05 20:50:52 +02:00
|
|
|
{
|
|
|
|
"name": "ESPHome Dev",
|
2022-10-26 01:04:29 +02:00
|
|
|
"image": "ghcr.io/esphome/esphome-lint:dev",
|
2024-07-01 01:06:59 +02:00
|
|
|
"postCreateCommand": [
|
|
|
|
"script/devcontainer-post-create"
|
|
|
|
],
|
2023-04-03 21:44:46 +02:00
|
|
|
"containerEnv": {
|
2023-10-27 00:56:16 +02:00
|
|
|
"DEVCONTAINER": "1",
|
|
|
|
"PIP_BREAK_SYSTEM_PACKAGES": "1",
|
|
|
|
"PIP_ROOT_USER_ACTION": "ignore"
|
2023-04-03 21:44:46 +02:00
|
|
|
},
|
2024-02-20 22:49:59 +01:00
|
|
|
"runArgs": [
|
|
|
|
"--privileged",
|
|
|
|
"-e",
|
|
|
|
"ESPHOME_DASHBOARD_USE_PING=1"
|
|
|
|
// uncomment and edit the path in order to pass though local USB serial to the conatiner
|
|
|
|
// , "--device=/dev/ttyACM0"
|
|
|
|
],
|
2020-04-05 20:50:52 +02:00
|
|
|
"appPort": 6052,
|
2024-02-20 22:49:59 +01:00
|
|
|
// if you are using avahi in the host device, uncomment these to allow the
|
|
|
|
// devcontainer to find devices via mdns
|
|
|
|
//"mounts": [
|
|
|
|
// "type=bind,source=/dev/bus/usb,target=/dev/bus/usb",
|
|
|
|
// "type=bind,source=/var/run/dbus,target=/var/run/dbus",
|
|
|
|
// "type=bind,source=/var/run/avahi-daemon/socket,target=/var/run/avahi-daemon/socket"
|
|
|
|
//],
|
2023-04-03 21:44:46 +02:00
|
|
|
"customizations": {
|
|
|
|
"vscode": {
|
|
|
|
"extensions": [
|
|
|
|
// python
|
|
|
|
"ms-python.python",
|
2024-07-01 01:06:59 +02:00
|
|
|
"ms-python.pylint",
|
|
|
|
"ms-python.flake8",
|
|
|
|
"ms-python.black-formatter",
|
2023-04-03 21:44:46 +02:00
|
|
|
"visualstudioexptteam.vscodeintellicode",
|
|
|
|
// yaml
|
|
|
|
"redhat.vscode-yaml",
|
|
|
|
// cpp
|
|
|
|
"ms-vscode.cpptools",
|
|
|
|
// editorconfig
|
2023-10-27 00:56:16 +02:00
|
|
|
"editorconfig.editorconfig"
|
2023-04-03 21:44:46 +02:00
|
|
|
],
|
|
|
|
"settings": {
|
|
|
|
"python.languageServer": "Pylance",
|
|
|
|
"python.pythonPath": "/usr/bin/python3",
|
2024-07-01 01:06:59 +02:00
|
|
|
"pylint.args": [
|
|
|
|
"--rcfile=${workspaceFolder}/pyproject.toml"
|
|
|
|
],
|
|
|
|
"flake8.args": [
|
|
|
|
"--config=${workspaceFolder}/.flake8"
|
|
|
|
],
|
|
|
|
"black-formatter.args": [
|
|
|
|
"--config",
|
|
|
|
"${workspaceFolder}/pyproject.toml"
|
|
|
|
],
|
|
|
|
"[python]": {
|
|
|
|
// VS will say "Value is not accepted" before building the devcontainer, but the warning
|
|
|
|
// should go away after build is completed.
|
|
|
|
"editor.defaultFormatter": "ms-python.black-formatter"
|
|
|
|
},
|
2023-04-03 21:44:46 +02:00
|
|
|
"editor.formatOnPaste": false,
|
|
|
|
"editor.formatOnSave": true,
|
|
|
|
"editor.formatOnType": true,
|
|
|
|
"files.trimTrailingWhitespace": true,
|
|
|
|
"terminal.integrated.defaultProfile.linux": "bash",
|
|
|
|
"yaml.customTags": [
|
|
|
|
"!secret scalar",
|
|
|
|
"!lambda scalar",
|
2023-06-12 03:31:00 +02:00
|
|
|
"!extend scalar",
|
2023-12-06 02:04:17 +01:00
|
|
|
"!remove scalar",
|
2023-04-03 21:44:46 +02:00
|
|
|
"!include_dir_named scalar",
|
|
|
|
"!include_dir_list scalar",
|
|
|
|
"!include_dir_merge_list scalar",
|
|
|
|
"!include_dir_merge_named scalar"
|
|
|
|
],
|
|
|
|
"files.exclude": {
|
|
|
|
"**/.git": true,
|
|
|
|
"**/.DS_Store": true,
|
|
|
|
"**/*.pyc": {
|
|
|
|
"when": "$(basename).py"
|
|
|
|
},
|
|
|
|
"**/__pycache__": true
|
|
|
|
},
|
|
|
|
"files.associations": {
|
|
|
|
"**/.vscode/*.json": "jsonc"
|
|
|
|
},
|
|
|
|
"C_Cpp.clang_format_path": "/usr/bin/clang-format-13"
|
|
|
|
}
|
|
|
|
}
|
2020-04-05 20:50:52 +02:00
|
|
|
}
|
|
|
|
}
|