mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-04-19 10:47:15 +00:00

* Migrate to Ruff for lint and format * Fix pylint issues * DBus property sets into normal awaitable methods * Fix tests relying on separate tasks in connect * Fixes from feedback
41 lines
1.2 KiB
JSON
41 lines
1.2 KiB
JSON
{
|
|
"name": "Supervisor dev",
|
|
"image": "ghcr.io/home-assistant/devcontainer:supervisor",
|
|
"containerEnv": {
|
|
"WORKSPACE_DIRECTORY": "${containerWorkspaceFolder}"
|
|
},
|
|
"appPort": ["9123:8123", "7357:4357"],
|
|
"postCreateCommand": "bash devcontainer_bootstrap",
|
|
"runArgs": ["-e", "GIT_EDITOR=code --wait", "--privileged"],
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": [
|
|
"charliermarsh.ruff",
|
|
"ms-python.pylint",
|
|
"ms-python.vscode-pylance",
|
|
"visualstudioexptteam.vscodeintellicode",
|
|
"redhat.vscode-yaml",
|
|
"esbenp.prettier-vscode",
|
|
"GitHub.vscode-pull-request-github"
|
|
],
|
|
"settings": {
|
|
"terminal.integrated.profiles.linux": {
|
|
"zsh": {
|
|
"path": "/usr/bin/zsh"
|
|
}
|
|
},
|
|
"terminal.integrated.defaultProfile.linux": "zsh",
|
|
"editor.formatOnPaste": false,
|
|
"editor.formatOnSave": true,
|
|
"editor.formatOnType": true,
|
|
"files.trimTrailingWhitespace": true,
|
|
"python.pythonPath": "/usr/local/bin/python3",
|
|
"[python]": {
|
|
"editor.defaultFormatter": "charliermarsh.ruff"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"mounts": ["type=volume,target=/var/lib/docker"]
|
|
}
|