|
4 | 4 | "version": "2.0.0", |
5 | 5 | "tasks": [ |
6 | 6 | { |
7 | | - "label": "gettext - Scan", |
8 | | - "type": "shell", |
9 | | - "command": "cmd", |
| 7 | + "label": "Run Ruff", |
| 8 | + "command": "ruff", |
10 | 9 | "args": [ |
11 | | - "/c", |
12 | | - "gettext.bat", |
13 | | - "rescan", |
| 10 | + "check", |
14 | 11 | ], |
15 | 12 | "options": { |
16 | | - "cwd": "scripts", |
17 | | - "env": { |
18 | | - "UNATTENDED": "1", |
19 | | - "PYTHONUTF8": "1", |
20 | | - "PYTHON": "${command:python.interpreterPath}", |
21 | | - } |
| 13 | + "cwd": "${workspaceFolder}" |
22 | 14 | }, |
23 | 15 | "group": { |
24 | 16 | "kind": "build", |
25 | | - "isDefault": true |
| 17 | + "isDefault": false |
26 | 18 | }, |
27 | 19 | "presentation": { |
| 20 | + "clear": true, |
28 | 21 | "echo": true, |
29 | | - "reveal": "always", |
30 | 22 | "focus": false, |
31 | | - "panel": "shared", |
| 23 | + "panel": "dedicated", |
| 24 | + "reveal": "always", |
32 | 25 | "showReuseMessage": true, |
33 | | - "clear": false |
34 | | - } |
| 26 | + }, |
| 27 | + "type": "shell" |
35 | 28 | }, |
36 | 29 | { |
37 | | - "label": "gettext - Compile", |
| 30 | + "label": "Run Pylint", |
| 31 | + "command": "pylint", |
| 32 | + "args": [ |
| 33 | + "plotpy", |
| 34 | + "--disable=C", |
| 35 | + "--disable=fixme", |
| 36 | + "--disable=R", |
| 37 | + "--disable=W", |
| 38 | + "--ignore=external" |
| 39 | + ], |
| 40 | + "options": { |
| 41 | + "cwd": "${workspaceFolder}" |
| 42 | + }, |
| 43 | + "group": { |
| 44 | + "kind": "build", |
| 45 | + "isDefault": false |
| 46 | + }, |
| 47 | + "presentation": { |
| 48 | + "clear": true, |
| 49 | + "echo": true, |
| 50 | + "focus": false, |
| 51 | + "panel": "dedicated", |
| 52 | + "reveal": "always", |
| 53 | + "showReuseMessage": true |
| 54 | + }, |
| 55 | + "type": "shell" |
| 56 | + }, |
| 57 | + { |
| 58 | + "label": "gettext - Scan", |
38 | 59 | "type": "shell", |
39 | 60 | "command": "cmd", |
40 | 61 | "args": [ |
41 | 62 | "/c", |
42 | 63 | "gettext.bat", |
43 | | - "compile", |
| 64 | + "rescan", |
44 | 65 | ], |
45 | 66 | "options": { |
46 | 67 | "cwd": "scripts", |
47 | 68 | "env": { |
48 | 69 | "UNATTENDED": "1", |
| 70 | + "PYTHONUTF8": "1", |
49 | 71 | "PYTHON": "${command:python.interpreterPath}", |
50 | 72 | } |
51 | 73 | }, |
|
63 | 85 | } |
64 | 86 | }, |
65 | 87 | { |
66 | | - "label": "Run Coverage", |
| 88 | + "label": "gettext - Compile", |
67 | 89 | "type": "shell", |
68 | 90 | "command": "cmd", |
69 | 91 | "args": [ |
70 | 92 | "/c", |
71 | | - "run_coverage.bat", |
| 93 | + "gettext.bat", |
| 94 | + "compile", |
72 | 95 | ], |
73 | 96 | "options": { |
74 | 97 | "cwd": "scripts", |
|
85 | 108 | "echo": true, |
86 | 109 | "reveal": "always", |
87 | 110 | "focus": false, |
88 | | - "panel": "dedicated", |
| 111 | + "panel": "shared", |
89 | 112 | "showReuseMessage": true, |
90 | | - "clear": true |
| 113 | + "clear": false |
91 | 114 | } |
92 | 115 | }, |
93 | 116 | { |
|
119 | 142 | } |
120 | 143 | }, |
121 | 144 | { |
122 | | - "label": "Run Pylint", |
123 | | - "command": "pylint", |
124 | | - "args": [ |
125 | | - "plotpy", |
126 | | - "--disable=C", |
127 | | - "--disable=fixme", |
128 | | - "--disable=R", |
129 | | - "--disable=W", |
130 | | - "--ignore=external" |
131 | | - ], |
132 | | - "options": { |
133 | | - "cwd": "${workspaceFolder}" |
134 | | - }, |
135 | | - "group": { |
136 | | - "kind": "build", |
137 | | - "isDefault": false |
138 | | - }, |
139 | | - "presentation": { |
140 | | - "clear": true, |
141 | | - "echo": true, |
142 | | - "focus": false, |
143 | | - "panel": "dedicated", |
144 | | - "reveal": "always", |
145 | | - "showReuseMessage": true |
146 | | - }, |
147 | | - "type": "shell" |
148 | | - }, |
149 | | - { |
150 | | - "label": "Run Ruff", |
151 | | - "command": "ruff", |
| 145 | + "label": "Update requirements.txt", |
| 146 | + "command": "toml-to-req", |
152 | 147 | "args": [ |
153 | | - "check", |
| 148 | + "--toml-file", |
| 149 | + "pyproject.toml", |
| 150 | + "--optional-lists", |
| 151 | + "dev,doc,test", |
154 | 152 | ], |
155 | 153 | "options": { |
156 | 154 | "cwd": "${workspaceFolder}" |
|
170 | 168 | "type": "shell" |
171 | 169 | }, |
172 | 170 | { |
173 | | - "label": "Update requirements.txt", |
174 | | - "command": "toml-to-req", |
| 171 | + "label": "Run Coverage", |
| 172 | + "type": "shell", |
| 173 | + "command": "cmd", |
175 | 174 | "args": [ |
176 | | - "--toml-file", |
177 | | - "pyproject.toml", |
178 | | - "--optional-lists", |
179 | | - "dev,doc,test", |
| 175 | + "/c", |
| 176 | + "run_coverage.bat", |
180 | 177 | ], |
181 | 178 | "options": { |
182 | | - "cwd": "${workspaceFolder}" |
| 179 | + "cwd": "scripts", |
| 180 | + "env": { |
| 181 | + "UNATTENDED": "1", |
| 182 | + "PYTHON": "${command:python.interpreterPath}", |
| 183 | + } |
183 | 184 | }, |
184 | 185 | "group": { |
185 | 186 | "kind": "build", |
186 | | - "isDefault": false |
| 187 | + "isDefault": true |
187 | 188 | }, |
188 | 189 | "presentation": { |
189 | | - "clear": true, |
190 | 190 | "echo": true, |
| 191 | + "reveal": "always", |
191 | 192 | "focus": false, |
192 | 193 | "panel": "dedicated", |
193 | | - "reveal": "always", |
194 | 194 | "showReuseMessage": true, |
195 | | - }, |
196 | | - "type": "shell" |
| 195 | + "clear": true |
| 196 | + } |
197 | 197 | }, |
198 | 198 | { |
199 | 199 | "label": "Clean Up", |
|
0 commit comments