-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (40 loc) · 1.41 KB
/
Makefile
File metadata and controls
52 lines (40 loc) · 1.41 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
.PHONY: clean test test-unit test-property test-integration lint format check clean-branches install-skills uninstall-skills
clean:
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
find . -type f -name '*.pyc' -delete 2>/dev/null || true
find . -type f -name '*.pyo' -delete 2>/dev/null || true
rm -rf .pytest_cache/ *.egg-info/ dist/ .ruff_cache/ .mypy_cache/ .hypothesis/
test:
uv run pytest -q
test-unit:
uv run pytest tests/unit/ -q
test-property:
uv run pytest tests/property/ -q
test-integration:
uv run pytest tests/integration/ -q
lint:
uv run ruff check agent_fox/ && uv run ruff format --check agent_fox/
format:
uv run ruff format agent_fox/ tests/
check: lint test
clean-branches:
@git branch --list 'feature/*' | xargs -r git branch -D
@git branch --list 'fix/*' | xargs -r git branch -D
SKILLS_TEMPLATES_DIR := $(CURDIR)/agent_fox/_templates/skills
CLAUDE_SKILLS_DIR := $(HOME)/.claude/skills
install-skills:
@for skill in $(SKILLS_TEMPLATES_DIR)/*; do \
name=$$(basename "$$skill"); \
target="$(CLAUDE_SKILLS_DIR)/$$name"; \
mkdir -p "$$target"; \
cp "$$skill" "$$target/SKILL.md"; \
echo "installed: $$name -> $$target/SKILL.md"; \
done
uninstall-skills:
@for skill in $(SKILLS_TEMPLATES_DIR)/*; do \
name=$$(basename "$$skill"); \
if [ -d "$(CLAUDE_SKILLS_DIR)/$$name" ]; then \
rm -rf "$(CLAUDE_SKILLS_DIR)/$$name"; \
echo "removed: $$name"; \
fi; \
done