File tree Expand file tree Collapse file tree 2 files changed +64
-3
lines changed Expand file tree Collapse file tree 2 files changed +64
-3
lines changed Original file line number Diff line number Diff line change 1212 "type" : " npm" ,
1313 "script" : " compile" ,
1414 "isBackground" : true ,
15- "problemMatcher" : [
16- " $tsc-watch"
17- ],
15+ "problemMatcher" : [" $tsc-watch" ],
1816 "group" : {
1917 "kind" : " build" ,
2018 "isDefault" : true
3432 "script" : " preTestJediLSP" ,
3533 "problemMatcher" : [],
3634 "label" : " preTestJediLSP"
35+ },
36+ {
37+ "label" : " Run check_pr.sh" ,
38+ "type" : " shell" ,
39+ "command" : " ${workspaceFolder}/check_pr.sh" ,
40+ "options" : {
41+ "cwd" : " ${workspaceFolder}" ,
42+ "env" : {
43+ "VIRTUAL_ENV" : " ${workspaceFolder}/.venv" ,
44+ "PATH" : " ${workspaceFolder}/.venv/bin/python"
45+ }
46+ },
47+ "group" : {
48+ "kind" : " build" ,
49+ "isDefault" : false
50+ },
51+ "problemMatcher" : [],
52+ "presentation" : {
53+ "echo" : true ,
54+ "reveal" : " always" ,
55+ "focus" : false ,
56+ "panel" : " shared"
57+ }
3758 }
3859 ]
3960}
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Function to run a command and check its status
4+ run_command () {
5+ echo " Running: '$1 '"
6+ echo " ----------------------------------------"
7+ $1
8+ if [ $? -ne 0 ]; then
9+ echo " FAILURE: '$1 '"
10+ exit 1
11+ else
12+ echo " ----------------------------------------"
13+ echo " SUCCESS: '$1 '"
14+ echo " ----------------------------------------"
15+ fi
16+ }
17+
18+ # Check dependencies
19+ run_command " npm run checkDependencies"
20+
21+ # Run linter
22+ run_command " npm run lint"
23+
24+ # Check formatting
25+ run_command " npm run format-check"
26+
27+ # Activate the virtual environment
28+ source " .venv/bin/activate"
29+
30+ # Change directory to python_files
31+ cd python_files || exit
32+
33+ # Run Pyright
34+ run_command " python -m pyright"
35+
36+ # Run Ruff
37+ run_command " python -m ruff ."
38+ echo " ----------------------------------------"
39+ echo " ----------------------------------------"
40+ echo " All checks passed successfully!"
You can’t perform that action at this time.
0 commit comments