Skip to content

Commit 23592fb

Browse files
committed
πŸ§‘β€πŸ’» vscode tasks for basedpyright, mypy, and stubtest
1 parent ffcab62 commit 23592fb

File tree

1 file changed

+79
-0
lines changed

1 file changed

+79
-0
lines changed

β€Ž.vscode/tasks.json

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [{
4+
"label": "basedpyright",
5+
"type": "shell",
6+
"command": "uv",
7+
"args": ["run", "basedpyright"],
8+
"group": {
9+
"kind": "build",
10+
"isDefault": false
11+
},
12+
"presentation": {
13+
"clear": true
14+
},
15+
"problemMatcher": [{
16+
"owner": "basedpyright",
17+
"fileLocation": "absolute",
18+
"pattern": {
19+
"regexp": "^(.+):(\\d+):(\\d+) - (error|warning|info): (.+)$",
20+
"file": 1,
21+
"line": 2,
22+
"column": 3,
23+
"severity": 4,
24+
"message": 5
25+
}
26+
}],
27+
"options": {
28+
"cwd": "${workspaceFolder}"
29+
}
30+
}, {
31+
"label": "mypy",
32+
"type": "shell",
33+
"command": "uv",
34+
"args": ["run", "--no-editable", "mypy", "."],
35+
"group": {
36+
"kind": "build",
37+
"isDefault": false
38+
},
39+
"presentation": {
40+
"clear": true
41+
},
42+
"problemMatcher": [{
43+
"owner": "mypy",
44+
"fileLocation": "absolute",
45+
"pattern": {
46+
"regexp": "^(.+):(\\d+): (error|warning|note): (.+)$",
47+
"file": 1,
48+
"line": 2,
49+
"severity": 3,
50+
"message": 4
51+
}
52+
}],
53+
"options": {
54+
"cwd": "${workspaceFolder}"
55+
}
56+
}, {
57+
"label": "stubtest",
58+
"type": "shell",
59+
"command": "uv",
60+
"args": [
61+
"run",
62+
"--no-editable",
63+
"--reinstall-package=scipy-stubs",
64+
"stubtest",
65+
"--allowlist=.mypyignore",
66+
"scipy"
67+
],
68+
"group": {
69+
"kind": "build",
70+
"isDefault": false
71+
},
72+
"presentation": {
73+
"clear": true
74+
},
75+
"options": {
76+
"cwd": "${workspaceFolder}"
77+
}
78+
}]
79+
}

0 commit comments

Comments
Β (0)