Debian Codegraph @

.vscode/tasks.json

raw symbols SCIP
1 {
2 // See https://go.microsoft.com/fwlink/?LinkId=733558
3 // for the documentation about the tasks.json format
4 "version": "2.0.0",
5 "tasks": [
6 {
7 "label": "๐Ÿงฝ Ruff Formatter",
8 "command": "${command:python.interpreterPath}",
9 "args": [
10 "scripts/run_with_env.py",
11 "${command:python.interpreterPath}",
12 "-m",
13 "ruff",
14 "format",
15 ],
16 "options": {
17 "cwd": "${workspaceFolder}",
18 "statusbar": {
19 "hide": true,
20 },
21 },
22 "group": {
23 "kind": "build",
24 "isDefault": true,
25 },
26 "presentation": {
27 "clear": true,
28 "echo": true,
29 "focus": false,
30 "panel": "dedicated",
31 "reveal": "always",
32 "showReuseMessage": true,
33 },
34 "type": "shell",
35 },
36 {
37 "label": "๐Ÿ”ฆ Ruff Linter",
38 "command": "${command:python.interpreterPath}",
39 "args": [
40 "scripts/run_with_env.py",
41 "${command:python.interpreterPath}",
42 "-m",
43 "ruff",
44 "check",
45 "--fix",
46 ],
47 "options": {
48 "cwd": "${workspaceFolder}",
49 "statusbar": {
50 "hide": true,
51 },
52 },
53 "group": {
54 "kind": "build",
55 "isDefault": true,
56 },
57 "presentation": {
58 "clear": true,
59 "echo": true,
60 "focus": false,
61 "panel": "dedicated",
62 "reveal": "always",
63 "showReuseMessage": true,
64 },
65 "type": "shell",
66 },
67 {
68 "label": "๐Ÿงฝ๐Ÿ”ฆ Ruff",
69 "dependsOrder": "sequence",
70 "dependsOn": [
71 "๐Ÿงฝ Ruff Formatter",
72 "๐Ÿ”ฆ Ruff Linter",
73 ],
74 "group": {
75 "kind": "build",
76 "isDefault": false,
77 },
78 "presentation": {
79 "clear": true,
80 "echo": true,
81 "focus": false,
82 "panel": "dedicated",
83 "reveal": "always",
84 "showReuseMessage": true,
85 },
86 "type": "shell",
87 },
88 {
89 "label": "๐Ÿ”ฆ Pylint",
90 "command": "${command:python.interpreterPath}",
91 "args": [
92 "scripts/run_with_env.py",
93 "${command:python.interpreterPath}",
94 "-m",
95 "pylint",
96 "plotpy",
97 "--disable=duplicate-code",
98 "--disable=fixme",
99 "--disable=too-many-arguments",
100 "--disable=too-many-branches",
101 "--disable=too-many-instance-attributes",
102 "--disable=too-many-lines",
103 "--disable=too-many-locals",
104 "--disable=too-many-public-methods",
105 "--disable=too-many-statements",
106 ],
107 "options": {
108 "cwd": "${workspaceFolder}",
109 },
110 "group": {
111 "kind": "build",
112 "isDefault": true,
113 },
114 "presentation": {
115 "clear": true,
116 "echo": true,
117 "focus": false,
118 "panel": "dedicated",
119 "reveal": "always",
120 "showReuseMessage": true,
121 },
122 "type": "shell",
123 },
124 {
125 "label": "๐Ÿš€ Pytest",
126 "command": "${command:python.interpreterPath}",
127 "args": [
128 "scripts/run_with_env.py",
129 "${command:python.interpreterPath}",
130 "-m",
131 "pytest",
132 "--ff",
133 ],
134 "options": {
135 "cwd": "${workspaceFolder}",
136 "env": {
137 "UNATTENDED": "1",
138 },
139 },
140 "group": {
141 "kind": "build",
142 "isDefault": true,
143 },
144 "presentation": {
145 "echo": true,
146 "reveal": "always",
147 "focus": false,
148 "panel": "dedicated",
149 "showReuseMessage": true,
150 "clear": true,
151 },
152 "type": "shell",
153 },
154 {
155 "label": "๐Ÿ”Ž Scan translations",
156 "command": "${command:python.interpreterPath}",
157 "args": [
158 "scripts/run_with_env.py",
159 "${command:python.interpreterPath}",
160 "-m",
161 "guidata.utils.translations",
162 "scan",
163 "--name",
164 "plotpy",
165 "--directory",
166 ".",
167 "--copyright-holder",
168 "CEA, Codra, Pierre Raybaut",
169 ],
170 "group": {
171 "kind": "build",
172 "isDefault": false,
173 },
174 "options": {
175 "cwd": "${workspaceFolder}",
176 },
177 "presentation": {
178 "clear": true,
179 "echo": true,
180 "focus": false,
181 "panel": "dedicated",
182 "reveal": "always",
183 "showReuseMessage": true,
184 },
185 "type": "shell",
186 },
187 {
188 "label": "๐Ÿ“š Compile translations",
189 "command": "${command:python.interpreterPath}",
190 "args": [
191 "scripts/run_with_env.py",
192 "${command:python.interpreterPath}",
193 "-m",
194 "guidata.utils.translations",
195 "compile",
196 "--name",
197 "plotpy",
198 "--directory",
199 ".",
200 ],
201 "group": {
202 "kind": "build",
203 "isDefault": false,
204 },
205 "options": {
206 "cwd": "${workspaceFolder}",
207 },
208 "presentation": {
209 "clear": true,
210 "echo": true,
211 "focus": false,
212 "panel": "dedicated",
213 "reveal": "always",
214 "showReuseMessage": true,
215 },
216 "type": "shell",
217 },
218 {
219 "label": "Generate requirements",
220 "command": "${command:python.interpreterPath}",
221 "args": [
222 "scripts/run_with_env.py",
223 "${command:python.interpreterPath}",
224 "-m",
225 "guidata.utils.genreqs",
226 "all",
227 ],
228 "options": {
229 "cwd": "${workspaceFolder}",
230 "env": {
231 "PYTHONPATH": "C:/Dev/Projets/guidata",
232 },
233 "statusbar": {
234 "hide": true,
235 },
236 },
237 "group": {
238 "kind": "build",
239 "isDefault": false,
240 },
241 "presentation": {
242 "clear": true,
243 "echo": true,
244 "focus": false,
245 "panel": "dedicated",
246 "reveal": "always",
247 "showReuseMessage": true,
248 },
249 "type": "shell",
250 },
251 {
252 "label": "๐Ÿ” Reinstall guidata dev",
253 "type": "shell",
254 "command": "${config:python.defaultInterpreterPath}",
255 "args": [
256 "scripts/run_with_env.py",
257 "${config:python.defaultInterpreterPath}",
258 "${workspaceFolder}/scripts/reinstall_dev.py",
259 ],
260 "options": {
261 "cwd": "${workspaceFolder}",
262 "statusbar": {
263 "hide": true,
264 },
265 },
266 "presentation": {
267 "panel": "dedicated",
268 "reveal": "always",
269 },
270 "problemMatcher": [],
271 },
272 {
273 "label": "๐Ÿงน Clean Up",
274 "type": "shell",
275 "command": "${command:python.interpreterPath}",
276 "args": [
277 "scripts/run_with_env.py",
278 "${command:python.interpreterPath}",
279 "-m",
280 "guidata.utils.cleanup"
281 ],
282 "options": {
283 "cwd": "${workspaceFolder}"
284 },
285 "group": {
286 "kind": "build",
287 "isDefault": true
288 },
289 "presentation": {
290 "echo": true,
291 "reveal": "always",
292 "focus": false,
293 "panel": "shared",
294 "showReuseMessage": true,
295 "clear": false,
296 },
297 },
298 {
299 "label": "Upgrade PythonQwt/guidata",
300 "type": "shell",
301 "command": "${command:python.interpreterPath}",
302 "args": [
303 "scripts/run_with_env.py",
304 "${command:python.interpreterPath}",
305 "-m",
306 "pip",
307 "install",
308 "--upgrade",
309 "pip",
310 "PythonQwt",
311 "guidata",
312 ],
313 "options": {
314 "cwd": "scripts",
315 "env": {
316 "PYTHON": "${command:python.interpreterPath}",
317 "UNATTENDED": "1",
318 },
319 "statusbar": {
320 "hide": true,
321 },
322 },
323 "group": {
324 "kind": "build",
325 "isDefault": true,
326 },
327 "presentation": {
328 "echo": true,
329 "reveal": "always",
330 "focus": false,
331 "panel": "shared",
332 "showReuseMessage": true,
333 "clear": false,
334 },
335 },
336 {
337 "label": "๐Ÿ“š Build documentation",
338 "command": "${command:python.interpreterPath}",
339 "args": [
340 "scripts/run_with_env.py",
341 "${command:python.interpreterPath}",
342 "-m",
343 "sphinx",
344 "build",
345 "doc",
346 "${workspaceFolder}/build/doc",
347 "-b",
348 "html",
349 // "-W",
350 ],
351 "options": {
352 "cwd": "${workspaceFolder}",
353 },
354 "group": {
355 "kind": "build",
356 "isDefault": true,
357 },
358 "presentation": {
359 "clear": true,
360 "echo": true,
361 "focus": false,
362 "panel": "dedicated",
363 "reveal": "always",
364 "showReuseMessage": true,
365 },
366 "type": "shell",
367 "dependsOrder": "sequence",
368 "dependsOn": [
369 "Generate requirements",
370 ],
371 },
372 {
373 "label": "๐ŸŒ Open HTML doc",
374 "type": "shell",
375 "windows": {
376 "command": "start build/doc/index.html",
377 },
378 "linux": {
379 "command": "xdg-open build/doc/index.html",
380 },
381 "osx": {
382 "command": "open build/doc/index.html",
383 },
384 "options": {
385 "cwd": "${workspaceFolder}",
386 },
387 "problemMatcher": [],
388 },
389 {
390 "label": "๐Ÿ“ฆ Build package",
391 "type": "shell",
392 "command": "${command:python.interpreterPath}",
393 "args": [
394 "scripts/run_with_env.py",
395 "${command:python.interpreterPath}",
396 "-m",
397 "guidata.utils.securebuild",
398 ],
399 "options": {
400 "cwd": "${workspaceFolder}",
401 },
402 "group": {
403 "kind": "build",
404 "isDefault": false,
405 },
406 "presentation": {
407 "clear": true,
408 "panel": "dedicated",
409 },
410 "problemMatcher": [],
411 "dependsOrder": "sequence",
412 "dependsOn": [
413 "๐Ÿงน Clean Up",
414 ],
415 },
416 {
417 "label": "Build all wheels",
418 "type": "shell",
419 "command": "cmd",
420 "options": {
421 "cwd": "scripts",
422 "env": {
423 "PYTHON": "${command:python.interpreterPath}",
424 "UNATTENDED": "1",
425 },
426 "statusbar": {
427 "hide": true,
428 },
429 },
430 "args": [
431 "/c",
432 "build_wheels.bat",
433 ],
434 "problemMatcher": [],
435 "group": {
436 "kind": "build",
437 "isDefault": false,
438 },
439 "presentation": {
440 "echo": true,
441 "reveal": "always",
442 "focus": false,
443 "panel": "shared",
444 "showReuseMessage": true,
445 "clear": true,
446 },
447 "dependsOrder": "sequence",
448 "dependsOn": [
449 "๐Ÿงน Clean Up",
450 ],
451 },
452 {
453 "label": "โ›๏ธ Build in place",
454 "type": "shell",
455 "command": "cmd",
456 "options": {
457 "cwd": "scripts",
458 "env": {
459 "PYTHON": "${command:python.interpreterPath}",
460 "UNATTENDED": "1",
461 },
462 },
463 "args": [
464 "/c",
465 "build_inplace.bat",
466 ],
467 "problemMatcher": [],
468 "group": {
469 "kind": "build",
470 "isDefault": true,
471 },
472 "presentation": {
473 "echo": true,
474 "reveal": "always",
475 "focus": false,
476 "panel": "shared",
477 "showReuseMessage": true,
478 "clear": true,
479 },
480 "dependsOrder": "sequence",
481 "dependsOn": [
482 "๐Ÿงน Clean Up",
483 ],
484 },
485 {
486 "label": "๐Ÿงช Coverage tests",
487 "type": "shell",
488 "command": "${command:python.interpreterPath}",
489 "args": [
490 "scripts/run_with_env.py",
491 "${command:python.interpreterPath}",
492 "-m",
493 "coverage",
494 "run",
495 "-m",
496 "pytest",
497 "plotpy",
498 ],
499 "options": {
500 "cwd": "${workspaceFolder}",
501 "env": {
502 "COVERAGE_PROCESS_START": "${workspaceFolder}/.coveragerc",
503 },
504 "statusbar": {
505 "hide": true,
506 },
507 },
508 "group": {
509 "kind": "test",
510 "isDefault": true,
511 },
512 "presentation": {
513 "panel": "dedicated",
514 },
515 "problemMatcher": [],
516 },
517 {
518 "label": "๐Ÿ“Š Coverage full",
519 "type": "shell",
520 "windows": {
521 "command": "${command:python.interpreterPath} -m coverage combine; if ($?) { ${command:python.interpreterPath} -m coverage html; if ($?) { start htmlcov\\index.html } }",
522 },
523 "linux": {
524 "command": "${command:python.interpreterPath} -m coverage combine && ${command:python.interpreterPath} -m coverage html && xdg-open htmlcov/index.html",
525 },
526 "osx": {
527 "command": "${command:python.interpreterPath} -m coverage combine && ${command:python.interpreterPath} -m coverage html && open htmlcov/index.html",
528 },
529 "options": {
530 "cwd": "${workspaceFolder}",
531 "env": {
532 "COVERAGE_PROCESS_START": "${workspaceFolder}/.coveragerc",
533 },
534 },
535 "presentation": {
536 "panel": "dedicated",
537 },
538 "problemMatcher": [],
539 "dependsOrder": "sequence",
540 "dependsOn": [
541 "๐Ÿงช Coverage tests",
542 ],
543 },
544 {
545 "label": "๐Ÿ–ผ๏ธ Icon Browser",
546 "command": "${command:python.interpreterPath}",
547 "args": [
548 "scripts/run_with_env.py",
549 "${command:python.interpreterPath}",
550 "-m",
551 "guidata.widgets.iconbrowser",
552 "${workspaceFolder}/plotpy/data/icons",
553 ],
554 "options": {
555 "cwd": "${workspaceFolder}",
556 },
557 "group": {
558 "kind": "build",
559 "isDefault": true,
560 },
561 "presentation": {
562 "clear": true,
563 "echo": true,
564 "focus": false,
565 "panel": "dedicated",
566 "reveal": "always",
567 "showReuseMessage": true,
568 },
569 "type": "shell",
570 },
571 ],
572 }