-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (38 loc) · 1021 Bytes
/
Makefile
File metadata and controls
53 lines (38 loc) · 1021 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
52
53
.PHONY: test lint format typecheck check build clean distclean install install-tool install-dev docs docs-check docs-serve update-cli-ref
test:
uv run pytest
lint:
uv run ruff check
uv run ruff format --check
format:
uv run ruff format
typecheck:
uv run ty check
check: lint typecheck test docs-check
build:
uv build
install:
uv pip install .
install-tool:
uv tool install .
install-dev:
uv sync
clean:
rm -rf dist/ build/ *.egg-info site/
find . -type d -name __pycache__ -exec rm -rf {} +
rm -rf .pytest_cache .ruff_cache .mypy_cache .ty .cache
rm -rf htmlcov/ .coverage .coverage.* coverage.xml
find . -type f -name "*.pyc" -o -name "*.pyo" | xargs rm -f
docs:
uv run --group docs mkdocs build
docs-check: update-cli-ref docs
uv run --group docs mkdocs build --strict
uv run scripts/check-docs-links.py site
@rm -rf site/
@echo "Docs checks passed."
docs-serve:
uv run --group docs mkdocs serve
update-cli-ref:
uv run scripts/update-cli-reference.py
distclean: clean
rm -rf .venv/