|
49 | 49 | "statusbar": { |
50 | 50 | "hide": true, |
51 | 51 | }, |
| 52 | + "cwd": "${workspaceFolder}", |
| 53 | + "statusbar": { |
| 54 | + "hide": true, |
| 55 | + }, |
52 | 56 | }, |
53 | 57 | "group": { |
54 | 58 | "kind": "build", |
55 | 59 | "isDefault": true, |
| 60 | + "isDefault": true, |
56 | 61 | }, |
57 | 62 | "presentation": { |
| 63 | + "clear": true, |
58 | 64 | "clear": true, |
59 | 65 | "echo": true, |
60 | 66 | "focus": false, |
|
81 | 87 | "focus": false, |
82 | 88 | "panel": "dedicated", |
83 | 89 | "reveal": "always", |
| 90 | + "reveal": "always", |
84 | 91 | "showReuseMessage": true, |
85 | 92 | }, |
86 | 93 | "type": "shell", |
|
94 | 101 | "-m", |
95 | 102 | "pylint", |
96 | 103 | "qwt", |
| 104 | + // "--disable=R0801,C0103,C0114,C0115,C0116,W0612,W0613", |
97 | 105 | "--disable=fixme,C,R,W", |
98 | 106 | ], |
99 | 107 | "options": { |
|
132 | 140 | "group": { |
133 | 141 | "kind": "build", |
134 | 142 | "isDefault": true, |
| 143 | + "isDefault": true, |
135 | 144 | }, |
136 | 145 | "presentation": { |
| 146 | + "clear": true, |
137 | 147 | "echo": true, |
138 | | - "reveal": "always", |
139 | 148 | "focus": false, |
140 | 149 | "panel": "dedicated", |
| 150 | + "reveal": "always", |
141 | 151 | "showReuseMessage": true, |
142 | 152 | "clear": true, |
143 | 153 | }, |
|
160 | 170 | "options": { |
161 | 171 | "cwd": "${workspaceFolder}", |
162 | 172 | "env": { |
163 | | - "COVERAGE_PROCESS_START": "${workspaceFolder}/.coveragerc", |
| 173 | + "UNATTENDED": "1", |
164 | 174 | }, |
165 | 175 | "statusbar": { |
166 | 176 | "hide": true, |
|
189 | 199 | }, |
190 | 200 | "options": { |
191 | 201 | "cwd": "${workspaceFolder}", |
192 | | - "env": { |
193 | | - "COVERAGE_PROCESS_START": "${workspaceFolder}/.coveragerc", |
194 | | - }, |
195 | 202 | }, |
196 | 203 | "presentation": { |
197 | 204 | "panel": "dedicated", |
|
203 | 210 | ], |
204 | 211 | }, |
205 | 212 | { |
206 | | - "label": "📷 Take test screenshots", |
| 213 | + "label": "Take screenshots", |
207 | 214 | "type": "shell", |
208 | 215 | "command": "${command:python.interpreterPath}", |
209 | 216 | "args": [ |
210 | 217 | "scripts/run_with_env.py", |
211 | 218 | "${command:python.interpreterPath}", |
212 | | - "qwt/tests/__init__.py", |
213 | | - "--mode", |
214 | | - "screenshots", |
| 219 | + "scripts/take_screenshots.py", |
215 | 220 | ], |
216 | 221 | "options": { |
217 | 222 | "cwd": "${workspaceFolder}", |
| 223 | + "env": { |
| 224 | + "UNATTENDED": "1", |
| 225 | + }, |
| 226 | + }, |
| 227 | + "group": { |
| 228 | + "kind": "build", |
| 229 | + "isDefault": true, |
218 | 230 | }, |
219 | 231 | "presentation": { |
220 | 232 | "clear": true, |
| 233 | + "echo": true, |
| 234 | + "focus": false, |
221 | 235 | "panel": "dedicated", |
| 236 | + "reveal": "always", |
| 237 | + "showReuseMessage": true, |
| 238 | + "clear": true, |
222 | 239 | }, |
223 | | - "problemMatcher": [], |
224 | 240 | }, |
225 | 241 | { |
226 | | - "label": "📷 Take doc screenshots", |
227 | | - "type": "shell", |
| 242 | + "label": "🔦 Pylint", |
228 | 243 | "command": "${command:python.interpreterPath}", |
229 | 244 | "args": [ |
230 | 245 | "scripts/run_with_env.py", |
231 | 246 | "${command:python.interpreterPath}", |
232 | | - "doc/plot_example.py", |
| 247 | + "-m", |
| 248 | + "pylint", |
| 249 | + "qwt", |
| 250 | + "--disable=fixme,C,R,W", |
233 | 251 | ], |
234 | 252 | "options": { |
235 | 253 | "cwd": "${workspaceFolder}", |
236 | 254 | }, |
| 255 | + "group": { |
| 256 | + "kind": "build", |
| 257 | + "isDefault": true, |
| 258 | + }, |
237 | 259 | "presentation": { |
| 260 | + "clear": true, |
| 261 | + "echo": true, |
| 262 | + "focus": false, |
238 | 263 | "panel": "dedicated", |
| 264 | + "reveal": "always", |
| 265 | + "showReuseMessage": true, |
239 | 266 | }, |
240 | | - "problemMatcher": [], |
| 267 | + "type": "shell", |
241 | 268 | }, |
242 | 269 | { |
243 | | - "label": "📷 Take symbol screenshots", |
| 270 | + "label": "Build documentation", |
244 | 271 | "type": "shell", |
245 | | - "command": "${command:python.interpreterPath}", |
246 | | - "args": [ |
247 | | - "scripts/run_with_env.py", |
248 | | - "${command:python.interpreterPath}", |
249 | | - "doc/symbol_path_example.py", |
250 | | - ], |
| 272 | + "windows": { |
| 273 | + "command": "${command:python.interpreterPath} scripts/run_with_env.py ${command:python.interpreterPath} -m sphinx -b html doc build/doc; if ($?) { start build\\doc\\index.html }" |
| 274 | + }, |
| 275 | + "linux": { |
| 276 | + "command": "${command:python.interpreterPath} scripts/run_with_env.py ${command:python.interpreterPath} -m sphinx -b html doc build/doc && xdg-open build/doc/index.html" |
| 277 | + }, |
| 278 | + "osx": { |
| 279 | + "command": "${command:python.interpreterPath} scripts/run_with_env.py ${command:python.interpreterPath} -m sphinx -b html doc build/doc && open build/doc/index.html" |
| 280 | + }, |
251 | 281 | "options": { |
252 | 282 | "cwd": "${workspaceFolder}", |
253 | | - }, |
254 | | - "presentation": { |
255 | | - "panel": "dedicated", |
| 283 | + "cwd": "${workspaceFolder}", |
| 284 | + "env": { |
| 285 | + "UNATTENDED": "1" |
| 286 | + } |
256 | 287 | }, |
257 | 288 | "problemMatcher": [], |
258 | 289 | }, |
|
304 | 335 | { |
305 | 336 | "label": "📚 Build documentation", |
306 | 337 | "type": "shell", |
307 | | - "command": "${command:python.interpreterPath}", |
308 | | - "args": [ |
309 | | - "scripts/run_with_env.py", |
310 | | - "${command:python.interpreterPath}", |
311 | | - "-m", |
312 | | - "sphinx", |
313 | | - "build", |
314 | | - "doc", |
315 | | - "${workspaceFolder}/build/doc", |
316 | | - "-b", |
317 | | - "html", |
318 | | - ], |
| 338 | + "windows": { |
| 339 | + "command": "if (Test-Path MANIFEST) { Remove-Item MANIFEST }; ${command:python.interpreterPath} scripts/run_with_env.py ${command:python.interpreterPath} -m build; if (Test-Path PythonQwt.egg-info) { Remove-Item -Recurse -Force PythonQwt.egg-info }" |
| 340 | + }, |
| 341 | + "linux": { |
| 342 | + "command": "rm -f MANIFEST && ${command:python.interpreterPath} scripts/run_with_env.py ${command:python.interpreterPath} -m build && rm -rf PythonQwt.egg-info" |
| 343 | + }, |
| 344 | + "osx": { |
| 345 | + "command": "rm -f MANIFEST && ${command:python.interpreterPath} scripts/run_with_env.py ${command:python.interpreterPath} -m build && rm -rf PythonQwt.egg-info" |
| 346 | + }, |
319 | 347 | "options": { |
320 | 348 | "cwd": "${workspaceFolder}", |
| 349 | + "env": { |
| 350 | + "UNATTENDED": "1" |
| 351 | + } |
321 | 352 | }, |
| 353 | + "problemMatcher": [], |
322 | 354 | "group": { |
323 | 355 | "kind": "build", |
324 | 356 | "isDefault": true, |
|
345 | 377 | "command": "open build/doc/index.html", |
346 | 378 | }, |
347 | 379 | "options": { |
348 | | - "cwd": "${workspaceFolder}", |
| 380 | + "cwd": "scripts", |
| 381 | + "env": { |
| 382 | + "PYTHON": "${command:python.interpreterPath}", |
| 383 | + "UNATTENDED": "1" |
| 384 | + } |
349 | 385 | }, |
350 | | - "problemMatcher": [], |
351 | | - }, |
352 | | - { |
353 | | - "label": "📦 Build package", |
354 | | - "type": "shell", |
355 | | - "command": "${command:python.interpreterPath}", |
356 | 386 | "args": [ |
357 | 387 | "scripts/run_with_env.py", |
358 | 388 | "${command:python.interpreterPath}", |
|
0 commit comments