-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
46 lines (35 loc) · 849 Bytes
/
Copy pathJustfile
File metadata and controls
46 lines (35 loc) · 849 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
# Install in editable mode
install:
uv pip install -e .
# Install development dependencies
install-dev:
uv sync --all-extras
# Lint Python code
lint:
uv run ruff check --fix src/ tests/
# Format Python code
format:
uv run ruff format src/ tests/
# Type check Python code
type:
uv run ty check src/ tests/
# Check code quality
check: lint format type
# Run all Python tests
test:
uv run pytest tests/ -v
# Run Python tests with coverage
test-cov:
uv run pytest tests/ --cov=src --cov-report=html --cov-report=term
# Run all C tests
test-c:
cd tests/c && rake test:all
# Run all pre-commit hooks
pre:
uv run prek run --all-files
# Regenerate compile_commands.json
compdb:
bear -- uv run python setup.py build_ext --inplace --force
# Clean up temporary files
clean:
uv run python scripts/clean.py