Repository navigation
Expand file tree
/
Copy pathbackend.code-workspace
More file actions
313 lines (312 loc) · 9.83 KB
/
Copy pathbackend.code-workspace
File metadata and controls
313 lines (312 loc) · 9.83 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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
{
"folders": [
{
"name": "Backend (Django & Celery)",
"path": "tdrs-backend"
},
{
"name": "Parser Service (Go)",
"path": "tdrs-services/parser"
}
],
"settings": {
"files.autoSave": "afterDelay",
"files.autoSaveDelay": 1000,
"editor.formatOnSave": true,
"editor.tabSize": 4,
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"files.associations": {
"Pipfile": "toml",
"Pipfile.lock": "json",
"docker-compose*.yml": "yaml"
},
// "python.linting.enabled": true,
// "python.linting.flake8Enabled": true,
// "python.testing.pytestEnabled": true,
// "python.testing.unittestEnabled": false,
// "python.testing.pytestArgs": [
// "tdpservice/test"
// ],
"files.exclude": {
"**/node_modules": true
}
},
"extensions": {
"recommendations": [
"batisteo.vscode-django",
"circleci.circleci",
"DavidAnson.vscode-markdownlint",
"eamodio.gitlens",
"editorconfig.editorconfig",
"golang.go",
"google.google-antigravity",
"ms-azuretools.vscode-containers",
"ms-azuretools.vscode-docker",
"ms-ossdata.vscode-pgsql",
"ms-python.black-formatter",
"ms-python.flake8",
"ms-python.python",
"ms-python.vscode-pylance",
"ms-vscode-remote.remote-containers",
"ms-vscode.remote-repositories",
"ms-vsliveshare.vsliveshare",
"redhat.vscode-yaml",
"streetsidesoftware.code-spell-checker",
"task.vscode-task"
]
},
"tasks": {
"version": "2.0.0",
"tasks": [
{
"label": "Backend: Start Web Server",
"type": "shell",
"command": "task backend-up",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "dedicated" },
"group": { "kind": "build", "isDefault": true }
},
{
"label": "Backend: Stop Web Server",
"type": "shell",
"command": "task backend-down",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "dedicated" }
},
{
"label": "Backend: Restart Web Server",
"type": "shell",
"command": "task backend-restart",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "dedicated" }
},
{
"label": "Backend: Follow Web Server Logs",
"type": "shell",
"command": "task backend-logs",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "dedicated" }
},
{
"label": "Backend: Open Shell (Bash)",
"type": "shell",
"command": "task backend-bash",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "dedicated" }
},
{
"label": "Backend: Open Django Shell (shell_plus)",
"type": "shell",
"command": "task backend-shell",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "dedicated" }
},
{
"label": "Backend: Initialize Backend Project",
"type": "shell",
"command": "task init-backend",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "dedicated" }
},
{
"label": "Backend: Rebuild Image & Apply Migrations",
"type": "shell",
"command": "task backend-update",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "dedicated" }
},
{
"label": "Backend: Make Migrations",
"type": "shell",
"command": "task backend-makemigrations",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "shared" }
},
{
"label": "Backend: Run Migrations",
"type": "shell",
"command": "task backend-migrate",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "shared" }
},
{
"label": "Backend: Clean & Recreate DB (Dev Only)",
"type": "shell",
"command": "task backend-clean-db",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "dedicated" }
},
{
"label": "Backend: Drop DB Volume",
"type": "shell",
"command": "task drop-db",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "shared" }
},
{
"label": "Backend: Seed DB with Initial Data",
"type": "shell",
"command": "task backend-exec-seed-db",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "shared" }
},
{
"label": "Backend: Open PostgreSQL Shell",
"type": "shell",
"command": "task psql",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "dedicated" }
},
{
"label": "Backend: Run Flake8 Linter",
"type": "shell",
"command": "task backend-lint",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "shared" }
},
{
"label": "Backend: Run Pytest Suite",
"type": "shell",
"command": "task backend-pytest",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "dedicated" },
"group": { "kind": "test", "isDefault": true }
},
{
"label": "Backend: Run All Tests & Linters",
"type": "shell",
"command": "task backend-test-all",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "dedicated" },
"group": { "kind": "test", "isDefault": false }
},
{
"label": "Backend: Run Pytest with Coverage",
"type": "shell",
"command": "task backend-pytest-cov",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "shared" }
},
{
"label": "Backend: Run Go Parser Integration Suite",
"type": "shell",
"command": "task backend-pytest-go-integration",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "dedicated" }
},
{
"label": "Backend: Run Go Parser Integration (Active DB)",
"type": "shell",
"command": "task backend-pytest-go-integration-active",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "dedicated" }
},
{
"label": "Backend: Run ETL Integration Suite",
"type": "shell",
"command": "task backend-pytest-etl-integration",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "dedicated" }
},
{
"label": "Backend: Lock Pip Dependencies",
"type": "shell",
"command": "task backend-pip-lock",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "shared" }
},
{
"label": "Backend: Remove Volumes",
"type": "shell",
"command": "task backend-remove-volumes",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "shared" }
},
{
"label": "Backend: Start ClamAV Service",
"type": "shell",
"command": "task clamav-up",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "shared" }
},
{
"label": "Backend: Create ClamAV Infected Test File",
"type": "shell",
"command": "task create-infected-test-file",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "shared" }
},
{
"label": "Parser: Compile Check Packages & Tests",
"type": "shell",
"command": "task parser:compile-check",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "shared" }
},
{
"label": "Parser: Run Static Analysis (Lint)",
"type": "shell",
"command": "task parser:lint",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "shared" }
},
{
"label": "Parser: Validate Config & Coverage",
"type": "shell",
"command": "task parser:validate-config",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "shared" }
},
{
"label": "Parser: Run All Tests with Coverage",
"type": "shell",
"command": "task parser:test-all-coverage",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "shared" }
},
{
"label": "Parser: Generate Coverage Report",
"type": "shell",
"command": "task parser:coverage-report",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "shared" }
},
{
"label": "Parser: Run CI Checks",
"type": "shell",
"command": "task parser:ci-checks",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "shared" }
},
{
"label": "Dev: Start Full Environment (Backend + Frontend)",
"type": "shell",
"command": "task up",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "dedicated" }
},
{
"label": "Dev: Stop Full Environment",
"type": "shell",
"command": "task down",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "dedicated" }
},
{
"label": "Dev: Create External Docker Network",
"type": "shell",
"command": "task create-network",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "shared" }
},
{
"label": "Dev: Show Taskfile Help",
"type": "shell",
"command": "task help",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "shared" }
}
]
}
}