generated from ludeeus/integration_blueprint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.devcontainer-template.json
61 lines (60 loc) · 2.04 KB
/
.devcontainer-template.json
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
/*
Copy this file to .devcontainer.json
if using PODMAN, instead of DOCKER, uncomment the runArgs section
Change BUILD_TYPE to "dev" to use pytests and develop and "run" to use homeassistant
*/
{
"name": "sHedC/homeassistant-leakbot",
"image": "mcr.microsoft.com/vscode/devcontainers/python:1-3.12",
"postCreateCommand": "scripts/setup",
"forwardPorts": [
8123
],
"portsAttributes": {
"8123": {
"label": "localhost",
"protocol": "http"
}
},
"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/local/bin/python",
"python.defaultInterpreterPath": "/usr/local/bin/python",
"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",
//"runArgs": [
// "--userns=keep-id"
//],
"workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/${localWorkspaceFolderBasename},type=bind,Z"
}