forked from one-covenant/templar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
33 lines (25 loc) · 696 Bytes
/
Copy pathjustfile
File metadata and controls
33 lines (25 loc) · 696 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
# Default recipe to run when just is called without arguments
default:
@just --list
# Run ruff check with auto-fix and format
lint:
ruff check --fix .
ruff format .
# Run both check and format in a single command
fix: lint
test-run:
sed -i "s/__version__ = .*/__version__ = \"dev-$(cat /dev/urandom \
| tr -dc 'a-z0-9' \
| fold -w 8 \
| head -n 1)\"/" \
src/tplr/__init__.py
./scripts/start.sh
git restore src/tplr/__init__.py
dev:
uv pip install --pre -e ".[dev]"
test: dev
uv run --prerelease=allow pytest -sv
bistro:
ps aux | grep Bistro
cov:
uv run pytest tests/ -v --cov=src --cov-report=xml --cov-report=term