|
| 1 | +{ |
| 2 | + "version": "2.0.0", |
| 3 | + "tasks": [{ |
| 4 | + "label": "tox", |
| 5 | + "group": { "kind": "test", "isDefault": true }, |
| 6 | + "type": "shell", |
| 7 | + "command": "uvx tox p", |
| 8 | + "options": { |
| 9 | + "cwd": "${workspaceFolder}", |
| 10 | + "statusbar": { "label": "$(testing-run-all-icon) tox" } |
| 11 | + }, |
| 12 | + "problemMatcher": [] |
| 13 | + }, { |
| 14 | + "label": "basedpyright", |
| 15 | + "group": "test", |
| 16 | + "type": "shell", |
| 17 | + "command": "uv run basedpyright", |
| 18 | + "options": { |
| 19 | + "cwd": "${workspaceFolder}", |
| 20 | + "statusbar": { "label": "$(search-fuzzy) basedpyright" } |
| 21 | + }, |
| 22 | + "problemMatcher": [{ |
| 23 | + "owner": "basedpyright", |
| 24 | + "fileLocation": "absolute", |
| 25 | + "pattern": { |
| 26 | + "regexp": "^(.+):(\\d+):(\\d+) - (error|warning|info): (.+)$", |
| 27 | + "file": 1, |
| 28 | + "line": 2, |
| 29 | + "column": 3, |
| 30 | + "severity": 4, |
| 31 | + "message": 5 |
| 32 | + } |
| 33 | + }] |
| 34 | + }, { |
| 35 | + "label": "mypy", |
| 36 | + "group": "test", |
| 37 | + "type": "shell", |
| 38 | + "command": "uv run --no-editable mypy .", |
| 39 | + "options": { |
| 40 | + "cwd": "${workspaceFolder}", |
| 41 | + "statusbar": { "label": "$(search-fuzzy) mypy" } |
| 42 | + }, |
| 43 | + "problemMatcher": [{ |
| 44 | + "owner": "mypy", |
| 45 | + "fileLocation": "absolute", |
| 46 | + "pattern": { |
| 47 | + "regexp": "^(.+):(\\d+): (error|warning|note): (.+)$", |
| 48 | + "file": 1, |
| 49 | + "line": 2, |
| 50 | + "severity": 3, |
| 51 | + "message": 4 |
| 52 | + } |
| 53 | + }] |
| 54 | + }, { |
| 55 | + "label": "stubtest", |
| 56 | + "group": "test", |
| 57 | + "type": "shell", |
| 58 | + "command": "uv run tool/stubtest.py", |
| 59 | + "options": { |
| 60 | + "cwd": "${workspaceFolder}", |
| 61 | + "statusbar": { "label": "$(beaker) stubtest" } |
| 62 | + }, |
| 63 | + "problemMatcher": [] |
| 64 | + }, { |
| 65 | + "label": "ruff format", |
| 66 | + "group": "build", |
| 67 | + "type": "shell", |
| 68 | + "command": "uv run ruff format", |
| 69 | + "options": { "statusbar": { "hide": true } }, |
| 70 | + "presentation": { "close": true, "reveal": "silent" }, |
| 71 | + "problemMatcher": [] |
| 72 | + }, { |
| 73 | + "label": "dprint format", |
| 74 | + "group": "build", |
| 75 | + "type": "shell", |
| 76 | + "command": "uv run dprint fmt", |
| 77 | + "options": { "statusbar": { "hide": true } }, |
| 78 | + "presentation": { "close": true, "reveal": "silent" }, |
| 79 | + "problemMatcher": [] |
| 80 | + }, { |
| 81 | + "label": "format type-ignore comments", |
| 82 | + "group": "build", |
| 83 | + "type": "shell", |
| 84 | + "command": "uv run tool/format_ignores.py", |
| 85 | + "options": { "statusbar": { "hide": true } }, |
| 86 | + "presentation": { "close": true, "reveal": "silent" }, |
| 87 | + "problemMatcher": ["$python"] |
| 88 | + }, { |
| 89 | + "label": "format", |
| 90 | + "group": { "kind": "build", "default": true }, |
| 91 | + "dependsOn": ["ruff format", "dprint format", "format type-ignore comments"], |
| 92 | + "options": { "statusbar": { "label": "$(paintcan) format" } }, |
| 93 | + "problemMatcher": [] |
| 94 | + }, { |
| 95 | + "label": "mkdocs serve", |
| 96 | + "group": "build", |
| 97 | + "type": "shell", |
| 98 | + "command": "uv run mkdocs serve", |
| 99 | + "options": { |
| 100 | + "cwd": "${workspaceFolder}", |
| 101 | + "statusbar": { |
| 102 | + "label": "$(markdown) mkdocs", |
| 103 | + "filePattern": "docs/.*|mkdocs.yml" |
| 104 | + } |
| 105 | + }, |
| 106 | + "isBackground": true, |
| 107 | + "presentation": { "panel": "dedicated" }, |
| 108 | + "problemMatcher": [{ |
| 109 | + "base": "$python", |
| 110 | + "background": { |
| 111 | + "activeOnStart": true, |
| 112 | + "beginsPattern": "Building documentation...", |
| 113 | + "endsPattern": "Serving on" |
| 114 | + } |
| 115 | + }] |
| 116 | + }] |
| 117 | +} |
0 commit comments