4949 "statusbar" : {
5050 "hide" : true ,
5151 },
52+ "cwd" : " ${workspaceFolder}" ,
53+ "statusbar" : {
54+ "hide" : true ,
55+ },
5256 },
5357 "group" : {
5458 "kind" : " build" ,
5559 "isDefault" : true ,
60+ "isDefault" : true ,
5661 },
5762 "presentation" : {
63+ "clear" : true ,
5864 "clear" : true ,
5965 "echo" : true ,
6066 "focus" : false ,
8187 "focus" : false ,
8288 "panel" : " dedicated" ,
8389 "reveal" : " always" ,
90+ "reveal" : " always" ,
8491 "showReuseMessage" : true ,
8592 },
8693 "type" : " shell" ,
133140 "group" : {
134141 "kind" : " build" ,
135142 "isDefault" : true ,
143+ "isDefault" : true ,
136144 },
137145 "presentation" : {
146+ "clear" : true ,
138147 "echo" : true ,
139- "reveal" : " always" ,
140148 "focus" : false ,
141149 "panel" : " dedicated" ,
150+ "reveal" : " always" ,
142151 "showReuseMessage" : true ,
143152 "clear" : true ,
144153 },
220229 "isDefault" : true ,
221230 },
222231 "presentation" : {
232+ "clear" : true ,
223233 "echo" : true ,
224- "reveal" : " always" ,
225234 "focus" : false ,
226235 "panel" : " dedicated" ,
236+ "reveal" : " always" ,
227237 "showReuseMessage" : true ,
228238 "clear" : true ,
229239 },
230240 },
231241 {
232- "label" : " Clean Up" ,
233- "type" : " shell" ,
234- "command" : " cmd" ,
242+ "label" : " 🔦 Pylint" ,
243+ "command" : " ${command:python.interpreterPath}" ,
235244 "args" : [
236- " /c" ,
237- " clean_up.bat"
245+ " scripts/run_with_env.py" ,
246+ " ${command:python.interpreterPath}" ,
247+ " -m" ,
248+ " pylint" ,
249+ " qwt" ,
250+ " --disable=fixme,C,R,W" ,
238251 ],
239252 "options" : {
240- "cwd" : " scripts "
253+ "cwd" : " ${workspaceFolder} " ,
241254 },
242255 "group" : {
243256 "kind" : " build" ,
244- "isDefault" : true
257+ "isDefault" : true ,
245258 },
246259 "presentation" : {
260+ "clear" : true ,
247261 "echo" : true ,
248- "reveal" : " always" ,
249262 "focus" : false ,
250- "panel" : " shared" ,
263+ "panel" : " dedicated" ,
264+ "reveal" : " always" ,
251265 "showReuseMessage" : true ,
252- "clear" : false
253- }
266+ },
267+ "type" : " shell " ,
254268 },
255269 {
256270 "label" : " Build documentation" ,
265279 "command" : " ${command:python.interpreterPath} scripts/run_with_env.py ${command:python.interpreterPath} -m sphinx -b html doc build/doc && open build/doc/index.html"
266280 },
267281 "options" : {
282+ "cwd" : " ${workspaceFolder}" ,
268283 "cwd" : " ${workspaceFolder}" ,
269284 "env" : {
270285 "UNATTENDED" : " 1"
271286 }
272287 },
273288 "problemMatcher" : [],
289+ },
290+ {
291+ "label" : " 📷 Take screenshots" ,
292+ "dependsOrder" : " sequence" ,
293+ "dependsOn" : [
294+ " 📷 Take test screenshots" ,
295+ " 📷 Take doc screenshots" ,
296+ " 📷 Take symbol screenshots" ,
297+ ],
274298 "group" : {
275299 "kind" : " build" ,
276- "isDefault" : true
300+ "isDefault" : true ,
301+ },
302+ "presentation" : {
303+ "clear" : true ,
304+ "panel" : " dedicated" ,
305+ },
306+ },
307+ {
308+ "label" : " 🧹 Clean Up" ,
309+ "type" : " shell" ,
310+ "windows" : {
311+ "command" : " Get-ChildItem -Recurse -Directory -Filter __pycache__ | Remove-Item -Recurse -Force; Remove-Item -Recurse -Force -ErrorAction SilentlyContinue build, dist, PythonQwt.egg-info, MANIFEST, htmlcov, .coverage, coverage.xml, sitecustomize.py; Remove-Item -Force -ErrorAction SilentlyContinue .coverage.*" ,
312+ },
313+ "linux" : {
314+ "command" : " find . -type d -name __pycache__ -exec rm -rf {} + ; rm -rf build dist PythonQwt.egg-info MANIFEST htmlcov .coverage coverage.xml sitecustomize.py .coverage.*" ,
315+ },
316+ "osx" : {
317+ "command" : " find . -type d -name __pycache__ -exec rm -rf {} + ; rm -rf build dist PythonQwt.egg-info MANIFEST htmlcov .coverage coverage.xml sitecustomize.py .coverage.*" ,
318+ },
319+ "options" : {
320+ "cwd" : " ${workspaceFolder}" ,
321+ },
322+ "group" : {
323+ "kind" : " build" ,
324+ "isDefault" : true ,
277325 },
278326 "presentation" : {
279327 "echo" : true ,
280328 "reveal" : " always" ,
281329 "focus" : false ,
282330 "panel" : " shared" ,
283331 "showReuseMessage" : true ,
284- "clear" : true
285- }
332+ "clear" : false ,
333+ },
286334 },
287335 {
288- "label" : " Build Python packages " ,
336+ "label" : " 📚 Build documentation " ,
289337 "type" : " shell" ,
290338 "windows" : {
291339 "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 }"
305353 "problemMatcher" : [],
306354 "group" : {
307355 "kind" : " build" ,
308- "isDefault" : true
356+ "isDefault" : true ,
309357 },
310358 "presentation" : {
359+ "clear" : true ,
311360 "echo" : true ,
312- "reveal" : " always" ,
313361 "focus" : false ,
314- "panel" : " shared" ,
362+ "panel" : " dedicated" ,
363+ "reveal" : " always" ,
315364 "showReuseMessage" : true ,
316- "clear" : true
317365 },
318- "dependsOrder" : " sequence" ,
319- "dependsOn" : [
320- " Clean Up" ,
321- ]
322366 },
323367 {
324- "label" : " Run test venv " ,
368+ "label" : " 🌐 Open HTML doc " ,
325369 "type" : " shell" ,
326- "command" : " cmd" ,
370+ "windows" : {
371+ "command" : " start build/doc/index.html" ,
372+ },
373+ "linux" : {
374+ "command" : " xdg-open build/doc/index.html" ,
375+ },
376+ "osx" : {
377+ "command" : " open build/doc/index.html" ,
378+ },
327379 "options" : {
328380 "cwd" : " scripts" ,
329381 "env" : {
332384 }
333385 },
334386 "args" : [
335- " /c" ,
336- " run_test_venv.bat"
387+ " scripts/run_with_env.py" ,
388+ " ${command:python.interpreterPath}" ,
389+ " -m" ,
390+ " build" ,
337391 ],
338- "problemMatcher" : [],
392+ "options" : {
393+ "cwd" : " ${workspaceFolder}" ,
394+ },
339395 "group" : {
340396 "kind" : " build" ,
341- "isDefault" : true
397+ "isDefault" : false ,
342398 },
343399 "presentation" : {
344- "echo" : true ,
345- "reveal" : " always" ,
346- "focus" : false ,
347- "panel" : " shared" ,
348- "showReuseMessage" : true ,
349- "clear" : true
400+ "clear" : true ,
401+ "panel" : " dedicated" ,
350402 },
403+ "problemMatcher" : [],
404+ "dependsOrder" : " sequence" ,
405+ "dependsOn" : [
406+ " 🧹 Clean Up" ,
407+ ],
351408 },
352- ]
409+ ],
353410}
0 commit comments