-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.devcontainer.json
More file actions
90 lines (90 loc) · 3.41 KB
/
Copy path.devcontainer.json
File metadata and controls
90 lines (90 loc) · 3.41 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
"name": "pi_thermostat",
"image": "mcr.microsoft.com/devcontainers/python:3.13",
// Install Ruby for Jekyll documentation
"onCreateCommand": "sudo apt-get update && sudo apt-get install -y ruby-full bundler build-essential zlib1g-dev ripgrep",
"postCreateCommand": "scripts/setup",
"forwardPorts": [
8123,
4000
],
"portsAttributes": {
"8123": {
"label": "Home Assistant",
"onAutoForward": "notify"
},
"4000": {
"label": "Jekyll Documentation",
"onAutoForward": "notify"
}
},
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"charliermarsh.ruff",
"mdickin.markdown-shortcuts"
],
"settings": {
// Testing configuration (workspace-wide)
"python.testing.pytestArgs": [
"tests"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"python.testing.autoTestDiscoverOnSaveEnabled": false,
"python.testing.pytestPath": "pytest",
"python.testing.cwd": "${workspaceFolder}",
// File handling
"files.eol": "\n",
"editor.tabSize": 4,
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.formatOnType": false,
"files.trimTrailingWhitespace": true,
// Python/Pylance performance (VS Code specific only)
"python.analysis.typeCheckingMode": "basic",
"python.analysis.packageIndexDepths": [
{
"name": "homeassistant",
"depth": 1,
"includeAllSymbols": false
}
],
"python.analysis.inlayHints.functionReturnTypes": false,
"python.analysis.inlayHints.variableTypes": false,
"python.analysis.completeFunctionParens": false,
"python.defaultInterpreterPath": "/usr/local/bin/python",
// VS Code file watching optimizations
"files.watcherExclude": {
"**/__pycache__/**": true,
"**/htmlcov/**": true,
"coverage.json": true,
"coverage.xml": true,
"**/.git/**": true,
"**/.mypy_cache/**": true,
"**/.pytest_cache/**": true,
"**/.ruff_cache/**": true
},
// Copilot Performance Optimization
"copilot.exclude": {
"**/__pycache__/**": true,
"**/htmlcov/**": true,
"**/node_modules/**": true,
"**/.git/**": true,
"**/.mypy_cache/**": true,
"**/.pytest_cache/**": true,
"**/.ruff_cache/**": true,
"**/build/**": true,
"**/dist/**": true
},
// Python formatter
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff"
}
}
}
},
"remoteUser": "vscode"
}