-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
55 lines (40 loc) · 982 Bytes
/
justfile
File metadata and controls
55 lines (40 loc) · 982 Bytes
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
48
49
50
51
52
53
54
55
set positional-arguments
PYTHON_DIR := if os_family() == "windows" { "./.venv/Scripts" } else { "./.venv/bin" }
PYTHON := PYTHON_DIR + if os_family() == "windows" { "/python.exe" } else { "/python3" }
SYSTEM_PYTHON := if os_family() == "windows" { "py.exe -3" } else { "python3" }
VERSION := "0.1.0"
create-venv:
{{SYSTEM_PYTHON}} -m venv .venv
install:
{{PYTHON}} -m pip install -e ".[dev]"
run *ARGS:
{{PYTHON}} -m cmake-lint {{ARGS}}
test:
{{PYTHON}} -m pytest
just clean
build:
{{PYTHON}} -m build
release:
@echo 'Tagging v{{VERSION}}...'
git tag v{{VERSION}}
@echo 'Push to GitHub to trigger publish process...'
git push --tags
clean:
rm -rf .pytest_cache/
clean-builds:
rm -rf build/
rm -rf dist/
rm -rf *.egg-info/
lint:
{{PYTHON}} -m ruff check .
{{PYTHON}} -m pyright .
fmt:
{{PYTHON}} -m ruff format .
ci-install:
just install
ci-test:
just test
ci-lint:
just lint
ci-fmt-check:
{{PYTHON}} -m ruff format --check .