-
Notifications
You must be signed in to change notification settings - Fork 72
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (31 loc) · 943 Bytes
/
Copy pathMakefile
File metadata and controls
42 lines (31 loc) · 943 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
.PHONY: default install format fix ruff-check mypy-check check test doc publish
UV := $(shell command -v uv 2>/dev/null || true)
ifeq ($(UV),)
$(warning uv not found. Install uv (curl -LsSf https://astral.sh/uv/install.sh | sh) to use Makefile targets)
endif
default:
@echo "Usage: make [install|format|fix|ruff-check|mypy-check|check|test|doc|publish]"
@exit 1
install:
uv sync --all-groups --locked
format:
uv run --group quality --locked ruff format
fix:
uv run --group quality --locked ruff check --fix
ruff-check:
uv run --group quality --locked ruff check
uv run --group quality --locked ruff format --check
mypy-check:
uv run --group tests --group types --group quality --locked mypy
check:
make ruff-check
make mypy-check
test:
uv run --group tests --locked pytest
doc:
uv run --group docs --locked sphinx-build -M html docs/source docs/build
publish:
rm -rf dist/
uv build
uvx twine check dist/*
uv publish