-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (43 loc) · 1.25 KB
/
Makefile
File metadata and controls
52 lines (43 loc) · 1.25 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
52
.PHONY: help install dev test lint format clean docs build
help:
@echo "Available commands:"
@echo " install Install package in production mode"
@echo " dev Install package in development mode with all dependencies"
@echo " test Run tests with coverage"
@echo " lint Run linting checks"
@echo " format Format code with ruff"
@echo " clean Remove build artifacts and cache files"
@echo " docs Build documentation"
@echo " build Build distribution packages"
install:
uv pip install .
dev:
uv sync --group dev --group test
uv pip install -e ".[docs]"
uv run pre-commit install
test:
uv run pytest tests/ -v --cov=calibre
lint:
uv run ruff check .
uv run mypy calibre --ignore-missing-imports
format:
uv run ruff format .
uv run ruff check --fix .
clean:
rm -rf build/
rm -rf dist/
rm -rf *.egg-info
rm -rf .coverage
rm -rf htmlcov/
rm -rf .pytest_cache/
rm -rf .mypy_cache/
rm -rf .ruff_cache/
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
find . -type f -name "*.pyo" -delete
find . -type f -name "*~" -delete
docs:
uv run sphinx-build -b html docs/source docs/_build/html
@echo "Documentation built at docs/_build/html/index.html"
build: clean
uv build