-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.devcontainer-template.json
More file actions
62 lines (61 loc) · 2.19 KB
/
Copy path.devcontainer-template.json
File metadata and controls
62 lines (61 loc) · 2.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
Copy this file to .devcontainer.json
See comments for further information.
Change BUILD_TYPE to "dev" to use pytests and develop and "run" to use homeassistant
*/
{
"name": "sHedC/homeassistant-ambrogio",
"image": "mcr.microsoft.com/vscode/devcontainers/python:0-3.11-bullseye",
"postCreateCommand": "scripts/setup",
"forwardPorts": [
8123
],
"containerEnv": {
"BUILD_TYPE": "run"
},
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"ms-python.black-formatter",
"charliermarsh.ruff",
"github.vscode-pull-request-github",
"mikestead.dotenv",
"ryanluker.vscode-coverage-gutters"
],
"settings": {
"files.eol": "\n",
"files.associations": {
"*.yaml": "home-assistant"
},
"editor.tabSize": 4,
"python.pythonPath": "/usr/bin/python3",
"python.analysis.autoSearchPaths": false,
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"python.experiments.enabled": false,
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"extensions.ignoreRecommendations": true,
"files.trimTrailingWhitespace": true
}
}
},
"remoteUser": "vscode",
"containerUser": "vscode",
// Uncomment counts section if using a bluetooth adapter
// also uncomment runArgs and priviledges for bluetooth
// For PODMAN instead of DOCKER uncomment the runArgs userns
// to avoid permission issues.
//"mounts": [
// "source=/var/run/dbus/,target=/var/run/dbus/,type=bind"
//],
//"runArgs": [
// "--userns=keep-id",
// "--privileged"
//],
"workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/${localWorkspaceFolderBasename},type=bind,Z"
}