-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
50 lines (37 loc) · 1.04 KB
/
justfile
File metadata and controls
50 lines (37 loc) · 1.04 KB
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
# compass development commands
set dotenv-load := false
# List available commands
default:
@just --list
# Run the full test suite
test *args='':
python3 -m pytest tests/ -v {{args}}
# Run tests with hypothesis CI profile (more examples)
test-ci:
python3 -m pytest tests/ -v --hypothesis-profile=ci --cov --cov-report=term-missing --benchmark-disable
# Lint with ruff
lint:
python3 -m ruff check src/ tests/
# Format check (no writes)
fmt-check:
python3 -m ruff format --check src/ tests/
# Auto-format
fmt:
python3 -m ruff format src/ tests/
# Type check
typecheck:
python3 -m mypy src/
# All checks (mirrors CI)
check: lint fmt-check typecheck test-ci
# Collect tests without running
test-collect:
python3 -m pytest tests/ --co -q
# Run benchmarks
benchmark:
python3 -m pytest tests/test_performance.py --benchmark-only -v
# Run headless simulator (replay | benchmark | converge)
simulate *args='':
PYTHONPATH=src python3 -m simulator {{args}}
# Install pre-commit hooks
install-hooks:
pre-commit install