File tree Expand file tree Collapse file tree 6 files changed +39
-19
lines changed Expand file tree Collapse file tree 6 files changed +39
-19
lines changed Original file line number Diff line number Diff line change 1919 key : publish-${{ hashFiles('pyproject.toml') }}
2020 - uses : extractions/setup-just@v2
2121 - run : curl -LsSf https://astral.sh/uv/install.sh | sh
22- - run : just publish
22+ - run : just publish-package
2323 env :
2424 PYPI_TOKEN : ${{ secrets.PYPI_TOKEN }}
Original file line number Diff line number Diff line change 1212 steps :
1313 - uses : actions/checkout@v4
1414 - uses : actions/setup-node@v4
15- with :
16- node-version : 20
1715 - run : npm version ${{ github.event.inputs.version }} --no-git-tag-version
1816 - run : npm ci
1917 - run : npx @vscode/vsce publish --pat ${{ secrets.VSCODE_MARKETPLACE_TOKEN }}
Original file line number Diff line number Diff line change 1515 DEFAULT_PYTHON_VERSION : " 3.12"
1616
1717jobs :
18- check-types :
18+ check-types-py :
1919 runs-on : ubuntu-latest
2020 steps :
2121 - uses : actions/checkout@v4
3030 - uses : extractions/setup-just@v2
3131 - run : just install check-types
3232
33- lint :
33+ lint-py :
3434 runs-on : ubuntu-latest
3535 steps :
3636 - uses : actions/checkout@v4
4545 - uses : extractions/setup-just@v2
4646 - run : just install lint
4747
48- test :
48+ test-py :
4949 runs-on : ubuntu-latest
5050 strategy :
5151 fail-fast : false
6666 - run : curl -LsSf https://astral.sh/uv/install.sh | sh
6767 - uses : extractions/setup-just@v2
6868 - run : just install test
69+
70+ check-types-ts :
71+ runs-on : ubuntu-latest
72+ steps :
73+ - uses : actions/checkout@v4
74+ - uses : actions/setup-node@v4
75+ - run : npm ci
76+ - run : npm run compile
77+
78+ lint-ts :
79+ runs-on : ubuntu-latest
80+ steps :
81+ - uses : actions/checkout@v4
82+ - uses : actions/setup-node@v4
83+ - run : npm ci
84+ - run : npm run lint
Original file line number Diff line number Diff line change 99 " --extensionDevelopmentPath=${workspaceFolder}" ,
1010 " ${workspaceFolder}/testing"
1111 ],
12- "outFiles" : [
13- " ${workspaceFolder}/dist/*.js"
14- ],
12+ "outFiles" : [" ${workspaceFolder}/dist/*.js" ],
1513 "preLaunchTask" : " npm: watch"
1614 }
1715 ]
Original file line number Diff line number Diff line change 1- default : install install-testing lint check-types test
1+ default : install lint check-types test
22
33install :
44 uv lock
55 uv sync
66
7- install-testing :
8- cd testing && uv lock && uv sync
9-
10- test * args :
11- @ .venv/ bin/ pytest -- {{ args }}
12-
137lint :
148 uv -q run ruff check .
159 uv -q run ruff format .
1610
1711check-types :
1812 uv -q run mypy .
1913
20- publish :
14+ test * args :
15+ @ .venv/ bin/ pytest -- {{ args }}
16+
17+ publish-package :
2118 rm -rf dist/ *
2219 uv tool run --from build python -m build --installer uv
2320 uv tool run twine check dist/ *
2421 uv tool run twine upload dist/ * --username __token__ --password $PYPI_TOKEN
2522
2623run * args :
2724 @ .venv/ bin/ auto-typing-final {{ args }}
25+
26+ extension : install-ts check-types-ts lint-ts
27+
28+ install-ts :
29+ npm ci
30+
31+ check-types-ts :
32+ npm run compile
33+
34+ lint-ts :
35+ npm run lint
Original file line number Diff line number Diff line change 2727 ]
2828 },
2929 "scripts" : {
30- "fmt " : " biome format --write ." ,
31- "package " : " tsc -p ./" ,
30+ "lint " : " biome format --write ." ,
31+ "compile " : " tsc -p ./" ,
3232 "watch" : " tsc -watch -p ./" ,
3333 "vscode:prepublish" : " npm run compile"
3434 },
You can’t perform that action at this time.
0 commit comments