-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (27 loc) · 1.39 KB
/
Copy pathMakefile
File metadata and controls
40 lines (27 loc) · 1.39 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
.PHONY: test test-unit test-self test-proof test-all score lint install install-dev clean help
SKILL_DIR := skills/schliff
help: ## Show available targets
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | \
awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-15s\033[0m %s\n", $$1, $$2}'
test-unit: ## Run the pytest unit suite (1100+ tests)
/usr/bin/python3 -m pytest skills/schliff/tests -q
test: test-unit ## Run unit tests (pytest) then integration tests
cd $(SKILL_DIR) && bash scripts/test-integration.sh --no-runtime-auto
test-self: ## Run self-tests (20 tests)
cd $(SKILL_DIR) && bash scripts/test-self.sh
test-proof: ## Run proof tests (6 tests)
cd $(SKILL_DIR) && bash tests/proof/test-proof.sh
test-all: test test-self test-proof ## Run all test suites
score: ## Score Schliff's own SKILL.md
cd $(SKILL_DIR) && python3 scripts/score-skill.py SKILL.md
score-json: ## Score with JSON output
cd $(SKILL_DIR) && python3 scripts/score-skill.py SKILL.md --json
lint: ## Run ruff linter on scripts
ruff check $(SKILL_DIR)/scripts/ || echo "Install ruff: pip install ruff"
install: ## Install Schliff (copy mode)
bash install.sh
install-dev: ## Install Schliff (symlink mode for development)
bash install.sh --link
clean: ## Remove __pycache__ and .pyc files
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
find . -type f -name '*.pyc' -delete 2>/dev/null || true