-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (39 loc) · 876 Bytes
/
Makefile
File metadata and controls
51 lines (39 loc) · 876 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
.PHONY: install sync test lint format typecheck all clean docs docs-serve
# Install dependencies
install:
uv sync --all-extras
uv run pre-commit install
# Sync dependencies
sync:
uv sync --all-extras
# Run tests with coverage
test:
uv run coverage run -m pytest -v
uv run coverage report
# Run tests without coverage
test-fast:
uv run pytest -v
# Run linter
lint:
uv run ruff check src tests
# Format code
format:
uv run ruff format src tests
uv run ruff check --fix src tests
# Type checking
typecheck:
uv run pyright
typecheck-mypy:
uv run mypy src
# Run all checks
all: format lint typecheck test
# Clean build artifacts
clean:
rm -rf build dist *.egg-info
rm -rf .coverage htmlcov .pytest_cache .ruff_cache .mypy_cache
find . -type d -name __pycache__ -exec rm -rf {} +
# Documentation
docs:
uv run mkdocs build
docs-serve:
uv run mkdocs serve