-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (31 loc) · 998 Bytes
/
Makefile
File metadata and controls
43 lines (31 loc) · 998 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
# Makefile for easy development workflows.
# See development.md for docs.
# Note GitHub Actions call uv directly, not this Makefile.
.DEFAULT_GOAL := default
.PHONY: default install lint test upgrade build clean agent-rules
default: agent-rules install lint test
install:
uv sync --all-extras
lint:
uv run python devtools/lint.py
test:
uv run pytest
upgrade:
uv sync --upgrade --all-extras --dev
build:
uv build
agent-rules: CLAUDE.md AGENTS.md
# Use .cursor/rules for sources of rules.
# Create Claude and Codex rules from these.
CLAUDE.md: .cursor/rules/general.mdc .cursor/rules/python.mdc
cat .cursor/rules/general.mdc .cursor/rules/python.mdc > CLAUDE.md
AGENTS.md: .cursor/rules/general.mdc .cursor/rules/python.mdc
cat .cursor/rules/general.mdc .cursor/rules/python.mdc > AGENTS.md
clean:
-rm -rf dist/
-rm -rf *.egg-info/
-rm -rf .pytest_cache/
-rm -rf .mypy_cache/
-rm -rf .venv/
-rm -rf CLAUDE.md AGENTS.md
-find . -type d -name "__pycache__" -exec rm -rf {} +