-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (34 loc) · 1020 Bytes
/
Makefile
File metadata and controls
48 lines (34 loc) · 1020 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
# Makefile for easy development workflows.
# Note GitHub Actions call uv directly, not this Makefile.
.DEFAULT_GOAL := default
.PHONY: default install lint format gendocs test test-golden test-golden-coverage update-golden upgrade build clean
default: install lint gendocs test
install:
uv sync --all-extras
lint:
uv run python devtools/lint.py
format:
uvx flowmark@latest --inplace --smartquotes --ellipses docs/repren-docs.md repren/skills/SKILL.md
gendocs:
uv run python devtools/gendocs.py
test:
uv run pytest
$(MAKE) test-golden-coverage
$(MAKE) test-golden
test-golden:
npx tryscript@latest run tests/tryscript/*.tryscript.md
test-golden-coverage:
bash scripts/check-golden-coverage.sh
update-golden:
npx tryscript@latest run --update tests/tryscript/*.tryscript.md
upgrade:
uv sync --upgrade --all-extras --dev
build:
uv build
clean:
-rm -rf dist/
-rm -rf *.egg-info/
-rm -rf .pytest_cache/
-rm -rf .mypy_cache/
-rm -rf .venv/
-find . -type d -name "__pycache__" -exec rm -rf {} +