-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.devcontainer.json
More file actions
102 lines (102 loc) · 3.92 KB
/
Copy path.devcontainer.json
File metadata and controls
102 lines (102 loc) · 3.92 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
91
92
93
94
95
96
97
98
99
100
101
102
{
"name": "Sugar Valley NeoPool",
"build": {
"dockerfile": "Dockerfile.dev",
"context": "."
},
"containerEnv": {
"PYTHONASYNCIODEBUG": "1"
},
"runArgs": [
"-e",
"GIT_EDITOR=code --wait",
"--security-opt",
"label=disable"
],
"postCreateCommand": "git config --global --add safe.directory ${containerWorkspaceFolder} && sudo rm -rf ./*.egg-info && uv pip install -e '.[dev]' && pre-commit install",
"forwardPorts": [8123],
"portsAttributes": {
"8123": {
"label": "Home Assistant",
"onAutoForward": "notify"
},
"0-8122": {
"onAutoForward": "ignore"
},
"8124-999999": {
"onAutoForward": "ignore"
}
},
"mounts": [
"source=${localEnv:USERPROFILE}/.ssh,target=/home/vscode/.ssh,type=bind,consistency=cached",
"source=${localEnv:USERPROFILE}/.claude.json,target=/home/vscode/.claude.json,type=bind,consistency=cached",
"source=${localEnv:USERPROFILE}/.claude,target=/home/vscode/.claude,type=bind,consistency=cached",
"source=${localEnv:APPDATA}/GitHub CLI,target=/home/vscode/.config/gh,type=bind,consistency=cached"
],
"features": {
"ghcr.io/devcontainers/features/github-cli:1": {}
},
"remoteUser": "vscode",
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"charliermarsh.ruff",
"astral-sh.ty",
"redhat.vscode-yaml",
"esbenp.prettier-vscode",
"GitHub.vscode-pull-request-github",
"ryanluker.vscode-coverage-gutters",
"GitHub.copilot-chat",
"anthropic.claude-code"
],
"settings": {
"python.experiments.optOutFrom": ["pythonTestAdapter"],
"python.defaultInterpreterPath": "/home/vscode/.local/ha-venv/bin/python",
"python.pythonPath": "/home/vscode/.local/ha-venv/bin/python",
"python.terminal.activateEnvInCurrentTerminal": true,
"ruff.path": ["/home/vscode/.local/ha-venv/bin/ruff"],
"python.testing.pytestEnabled": true,
"python.testing.pytestArgs": ["tests/", "--no-cov"],
"editor.formatOnSave": true,
"editor.formatOnType": true,
"editor.formatOnPaste": false,
"editor.codeActionsOnSave": {
"source.fixAll": "always",
"source.organizeImports": "always"
},
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[yaml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"yaml.customTags": [
"!input scalar",
"!secret scalar",
"!include_dir_named scalar",
"!include_dir_list scalar",
"!include_dir_merge_list scalar",
"!include_dir_merge_named scalar"
],
"json.schemas": [
{
"fileMatch": ["custom_components/*/manifest.json"],
"url": "https://raw.githubusercontent.com/home-assistant/core/dev/script/json_schemas/manifest_schema.json"
}
],
"files.eol": "\n",
"files.trimTrailingWhitespace": true,
"editor.tabSize": 4,
"editor.insertSpaces": true
}
}
}
}