-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
51 lines (40 loc) · 1.84 KB
/
Copy pathjustfile
File metadata and controls
51 lines (40 loc) · 1.84 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
51
# Quarry canonical commands
# Default: show available commands
default:
@just --list
# Run a targeted pressure test file or subset
test TARGET:
PYTHONPATH="packages/quarry-core/src:packages/quarry-connectors/src:packages/quarry-operators/src:packages/quarry-registry/src:packages/quarry-cli/src" uv run pytest {{TARGET}} -v
# Run the full pressure gate
test-all:
PYTHONPATH="packages/quarry-core/src:packages/quarry-connectors/src:packages/quarry-operators/src:packages/quarry-registry/src:packages/quarry-cli/src" uv run pytest tests/pressure_test/ packages/quarry-connectors/tests/ -v
# Run a specific test file
test-file FILE:
@just test {{FILE}}
# Run tests quietly (CI mode)
test-all-quiet:
PYTHONPATH="packages/quarry-core/src:packages/quarry-connectors/src:packages/quarry-operators/src:packages/quarry-registry/src:packages/quarry-cli/src" uv run pytest tests/pressure_test/ packages/quarry-connectors/tests/ -q
# Lint all packages
lint:
uv run ruff check packages/ tests/
# Format all packages
fmt:
uv run ruff format packages/ tests/
# Type check (when ty is configured)
typecheck:
uv run ty check packages/quarry-core/src/
# Lock dependencies
lock:
uv lock
# Show package tree
tree:
@echo "quarry-core (zero deps)"
@echo " ↑"
@echo "quarry-connectors (+ rasterio, fiona, pystac-client, psycopg, shapely, requests)"
@echo "quarry-operators (+ rasterio, fiona, shapely)"
@echo "quarry-registry (+ duckdb)"
@echo "quarry-cli (quarry-core + connectors + operators + registry)"
# Show test counts
stats:
@echo "Pressure tests:"
@PYTHONPATH="packages/quarry-core/src:packages/quarry-connectors/src:packages/quarry-operators/src:packages/quarry-registry/src:packages/quarry-cli/src" uv run pytest tests/pressure_test/ packages/quarry-connectors/tests/ --collect-only -q 2>/dev/null | tail -1