-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-dashio.code-workspace
More file actions
211 lines (205 loc) · 4.78 KB
/
python-dashio.code-workspace
File metadata and controls
211 lines (205 loc) · 4.78 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
{
"folders": [
{
"path": "."
}
],
"settings": {
"python.analysis.typeCheckingMode": "basic",
"python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python",
"python.terminal.activateEnvironment": true,
// Flake8 configuration
"flake8.args": [
"--max-line-length=260",
"--per-file-ignores=__init__.py:F401"
],
// Formatting
"[python]": {
"editor.defaultFormatter": "ms-python.autopep8",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
}
},
// Testing
"python.testing.pytestEnabled": true,
"python.testing.unittestEnabled": false,
"python.testing.pytestArgs": [
"tests"
],
// Spell checking
"cSpell.words": [
"autodocstring",
"dashio",
"iotcontrol",
"mqtt",
"paho",
"pylance",
"pypi",
"pyserial",
"pyzmq",
"shortuuid",
"zeroconf"
],
// File exclusions
"files.exclude": {
"**/__pycache__": true,
"**/*.pyc": true,
"**/.pytest_cache": true,
"**/.tox": true,
"**/build": true,
"**/dist": true,
"**/*.egg-info": true
},
"files.watcherExclude": {
"**/.tox/**": true,
"**/build/**": true,
"**/dist/**": true
}
},
"extensions": {
"recommendations": [
"ms-python.python",
"ms-python.vscode-pylance",
"ms-python.flake8",
"ms-python.autopep8",
"ms-python.isort",
"njpwerner.autodocstring",
"gruntfuggly.todo-tree",
"charliermarsh.ruff"
]
},
"tasks": {
"version": "2.0.0",
"tasks": [
{
"label": "Run Tests",
"type": "shell",
"command": "pytest",
"group": {
"kind": "test",
"isDefault": true
},
"presentation": {
"reveal": "always",
"panel": "new"
},
"problemMatcher": []
},
{
"label": "Run Tests with Coverage",
"type": "shell",
"command": "pytest --cov=dashio --cov-report=html",
"group": "test",
"presentation": {
"reveal": "always",
"panel": "new"
},
"problemMatcher": []
},
{
"label": "Run Tox (All Environments)",
"type": "shell",
"command": "uvx tox",
"group": "test",
"presentation": {
"reveal": "always",
"panel": "new"
},
"problemMatcher": []
},
{
"label": "Run Flake8",
"type": "shell",
"command": "flake8 dashio tests utilities",
"group": "test",
"presentation": {
"reveal": "always",
"panel": "new"
},
"problemMatcher": []
},
{
"label": "Build Package",
"type": "shell",
"command": "uv build",
"group": "build",
"presentation": {
"reveal": "always",
"panel": "new"
},
"problemMatcher": []
},
{
"label": "Clean Build Artifacts",
"type": "shell",
"command": "rm -rf build dist *.egg-info .tox .pytest_cache htmlcov .coverage",
"presentation": {
"reveal": "always",
"panel": "new"
},
"problemMatcher": []
},
{
"label": "Release (with version prompt)",
"type": "shell",
"command": "bash",
"args": [
"-c",
"read -p 'Enter version number (e.g., 3.5.9): ' version && ./scripts/release.sh $version"
],
"presentation": {
"reveal": "always",
"panel": "new",
"focus": true
},
"problemMatcher": []
},
{
"label": "Install Package (Editable)",
"type": "shell",
"command": "uv pip install -e '.[dev]'",
"presentation": {
"reveal": "always",
"panel": "new"
},
"problemMatcher": []
},
{
"label": "Update Dependencies",
"type": "shell",
"command": "uv pip install --upgrade -e '.[dev]'",
"presentation": {
"reveal": "always",
"panel": "new"
},
"problemMatcher": []
}
]
},
"launch": {
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "debugpy",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"justMyCode": false
},
{
"name": "Python: Pytest Current File",
"type": "debugpy",
"request": "launch",
"module": "pytest",
"args": [
"${file}",
"-v"
],
"console": "integratedTerminal",
"justMyCode": false
}
]
}
}