-
Notifications
You must be signed in to change notification settings - Fork 56
/
justfile
executable file
·47 lines (37 loc) · 1.28 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
default: fmt check
lock:
uv pip compile --python-version 3.7.9 --generate-hashes -o ./requirements.txt ./pyproject.toml
uv pip compile --python-version 3.7.9 --generate-hashes --upgrade --extra dev -o ./requirements-dev.txt ./pyproject.toml
npm install --package-lock-only
setup:
uv pip sync --require-hashes ./requirements.txt --target ./bundled/libs
install:
uv pip sync --require-hashes ./requirements-dev.txt
npm ci
test: setup
python -m unittest
e2e-tests: setup
npm run pretest
npm run tests
check:
ruff check ./bundled/tool ./build ./tests ./scripts
ruff format --check ./bundled/tool ./build ./tests ./scripts
uvx --with=types-requests --with=tomli --with=tomlkit --with=packaging --with=rich-argparse mypy scripts/release.py --strict --warn-unreachable --enable-error-code=possibly-undefined --enable-error-code=redundant-expr --enable-error-code=truthy-bool
mypy ./bundled/tool ./build ./tests
npm run fmt-check
npm run lint
npm run tsc
fmt:
ruff check --fix ./bundled/tool ./build ./tests ./scripts
ruff format ./bundled/tool ./build ./tests ./scripts
npm run fmt
build-package: setup
npm ci
npm run vsce-package
clean:
rm -rf out
rm -rf node_modules
rm -rf .vscode-test
rm -rf bundled/libs
release:
uv run --python=3.7 scripts/release.py