-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
61 lines (48 loc) · 1.52 KB
/
Copy pathMakefile
File metadata and controls
61 lines (48 loc) · 1.52 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
55
56
57
58
59
60
61
.PHONY: help install dev test lint format typecheck clean run docs build
help:
@echo "clearscript development commands"
@echo ""
@echo " make install Install runtime dependencies via uv"
@echo " make dev Install dev dependencies"
@echo " make test Run pytest"
@echo " make lint Run ruff lint"
@echo " make format Run ruff format"
@echo " make typecheck Run mypy"
@echo " make clean Remove build artifacts and caches"
@echo " make run Quick smoke run on the example fixture"
@echo " make docs Build and serve docs locally"
@echo " make build Build distributable wheel"
install:
uv sync
dev:
uv sync --extra dev
test:
uv run pytest -v
lint:
uv run ruff check .
format:
uv run ruff format .
typecheck:
uv run mypy src/clearscript
clean:
rm -rf build dist *.egg-info .pytest_cache .ruff_cache .mypy_cache
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name '*.pyc' -delete
run:
uv run clearscript run examples/01-basic-cleanup/input.txt
docs:
@if [ ! -d .venv-docs ]; then \
uv venv .venv-docs --python 3.13; \
uv pip install --python .venv-docs/bin/python "mkdocs-material>=9.5.0" "pymdown-extensions>=10.0"; \
fi
.venv-docs/bin/mkdocs serve
docs-build:
@if [ ! -d .venv-docs ]; then \
uv venv .venv-docs --python 3.13; \
uv pip install --python .venv-docs/bin/python "mkdocs-material>=9.5.0" "pymdown-extensions>=10.0"; \
fi
.venv-docs/bin/mkdocs build --strict
build:
uv build
skill:
bash scripts/build_skill.sh