-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (21 loc) · 1.12 KB
/
Copy pathMakefile
File metadata and controls
31 lines (21 loc) · 1.12 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
.PHONY: boundary-guard lint format registry-check validate test help
boundary-guard: ## Fail if the skills repo references support engines or Graycode private packages
bash ./scripts/check-consumer-boundaries.sh
lint: ## Run Ruff over all repository Python code
ruff check .
format: ## Format all repository Python code
ruff format .
registry-check: ## Fail if registry.json is stale
python3 tools/update_registry.py --check
validate: registry-check ## Validate all skills in the registry
python3 tools/validate_skill.py --all --warning-budget tools/validation_warning_budget.json
pytest: ## Run pytest unit tests
python3 -m pytest tests/ -v
package-check: ## Smoke-package a sample skill and verify the archive + metadata
python3 tools/package_skill.py categories/python/ai-sdk-python --skip-validate --output-dir /tmp/graycode-skill-pkg
test: boundary-guard lint validate pytest package-check ## Run all checks
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
.PHONY: hooks
hooks:
git config core.hooksPath .githooks