Skip to content

Commit d5f47df

Browse files
committed
build: add some vscode tasks to lint and format sources
1 parent 8a20b56 commit d5f47df

File tree

2 files changed

+14
-21
lines changed

2 files changed

+14
-21
lines changed

.vscode/tasks.json

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,23 @@
44
"version": "2.0.0",
55
"tasks": [
66
{
7-
"label": "npm: watch",
8-
"type": "npm",
9-
"script": "watch",
10-
"problemMatcher": "$tsc-watch",
11-
"isBackground": true,
12-
"presentation": {
13-
"reveal": "never"
14-
},
15-
"group": {
16-
"kind": "build",
17-
"isDefault": true
18-
}
7+
"label": "robotcode: lint fix",
8+
"type": "shell",
9+
"command": "hatch run lint:fix",
10+
"problemMatcher": []
1911
},
2012
{
21-
"label": "npm: compile",
22-
"type": "npm",
23-
"script": "compile",
13+
"label": "robotcode: lint all",
14+
"type": "shell",
15+
"command": "hatch run lint:all",
2416
"problemMatcher": []
25-
}
17+
},
2618
{
27-
"label": "Python Lint All",
19+
"label": "robotcode: bump version",
2820
"type": "shell",
29-
"command": "hatch run lint:all",
21+
"command": "hatch run build:cz bump",
3022
"problemMatcher": []
3123
}
24+
3225
]
3326
}

hatch.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ matrix.rf.dependencies = [
106106
features = ["all"]
107107

108108
[envs.lint.scripts]
109-
typing = ["mypy --install-types --non-interactive {args:.}"]
110-
style = ["ruff .", "black --check --diff ."]
111-
fmt = ["black .", "ruff --fix .", "style"]
109+
typing = ["mypy --install-types --non-interactive {args:.}", "npm run compile"]
110+
style = ["ruff .", "black --check --diff .", "npx eslint ."]
111+
fmt = ["black .", "ruff --fix .", "style", "npx eslint --fix ."]
112112
all = ["style", "typing"]
113113

114114
[envs.pages]

0 commit comments

Comments
 (0)