forked from astral-sh/ruff-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
executable file
·33 lines (26 loc) · 871 Bytes
/
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
default: fmt check
lock:
pip-compile --generate-hashes --resolver=backtracking -o ./requirements.txt ./pyproject.toml
pip-compile --generate-hashes --resolver=backtracking --upgrade --extra dev -o ./requirements-dev.txt ./pyproject.toml
npm install --package-lock-only
setup:
pip install -t ./bundled/libs --no-cache-dir --implementation py --no-deps --upgrade -r ./requirements.txt
install:
pip install --no-deps -r ./requirements.txt
pip install --no-deps -r ./requirements-dev.txt
npm ci
test: setup
python -m unittest
check:
ruff ./bundled/tool ./build ./tests
ruff format --check ./bundled/tool ./build ./tests
mypy ./bundled/tool ./build ./tests
npm run lint
npm run tsc
fmt:
ruff --fix ./bundled/tool ./build ./tests
ruff format ./bundled/tool ./build ./tests
npm run fmt
build-package: setup
npm ci
npm run vsce-package