-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.devcontainer.json
58 lines (58 loc) · 1.9 KB
/
.devcontainer.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
{
"name": "Sinapsi Alfa Modbus integration development",
"image": "mcr.microsoft.com/devcontainers/python:3.12-bullseye",
"remoteUser": "vscode",
"features": {
"ghcr.io/devcontainers/features/python:1": {
"installTools": true,
"version": "3.12"
}
},
"postCreateCommand": "scripts/setup",
"forwardPorts": [
8123
],
"portsAttributes": {
"8123": {
"label": "Home Assistant",
"onAutoForward": "notify"
}
},
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"github.vscode-pull-request-github",
"ryanluker.vscode-coverage-gutters",
"ms-python.vscode-pylance",
"charliermarsh.ruff",
"ms-python.black-formatter",
"esbenp.prettier-vscode"
],
"settings": {
"files.eol": "\n",
"files.trimTrailingWhitespace": true,
"editor.tabSize": 4,
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
// Ruff config
"notebook.formatOnSave.enabled": false,
"notebook.codeActionsOnSave": {
"notebook.source.fixAll": false,
"notebook.source.organizeImports": false
},
"[python]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": true,
"source.organizeImports": true
},
"editor.defaultFormatter": "charliermarsh.ruff"
}
// End Ruff config
}
}
}
}