-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (41 loc) · 1.21 KB
/
Makefile
File metadata and controls
54 lines (41 loc) · 1.21 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
53
54
.PHONY: install dev test lint format typecheck ty docs docs-build build clean changelog help
install:
uv sync
dev:
uv sync --group dev
test:
uv run pytest
test-cov:
uv run pytest --cov=pacta --cov-report=term-missing
lint:
uv run ruff check pacta tests
format:
uv run ruff format pacta tests
uv run ruff check --fix pacta tests
typecheck:
uv run ty check pacta
docs:
uv run mkdocs serve
docs-build:
uv run mkdocs build
build:
uv build
changelog:
git cliff -o CHANGELOG.md
clean:
rm -rf dist build *.egg-info .pytest_cache .mypy_cache .ruff_cache site
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
help:
@echo "Available targets:"
@echo " install - Install dependencies"
@echo " dev - Install with dev dependencies"
@echo " test - Run tests"
@echo " test-cov - Run tests with coverage"
@echo " lint - Run ruff linter"
@echo " format - Format code with ruff"
@echo " typecheck - Run ty type checker"
@echo " docs - Serve documentation locally"
@echo " docs-build - Build documentation"
@echo " build - Build package"
@echo " changelog - Generate CHANGELOG.md from commits"
@echo " clean - Remove build artifacts"