This repository was archived by the owner on Mar 27, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
66 lines (56 loc) · 2.13 KB
/
Makefile
File metadata and controls
66 lines (56 loc) · 2.13 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
53
54
55
56
57
58
59
60
61
62
63
64
65
## Makefile (repo-owned)
# Keep this file small. It can be edited without breaking template sync.
DOCFORMAT=google
DEFAULT_AI_MODEL=claude-sonnet-4.5
LOGO_FILE=.rhiza/assets/rhiza-logo.svg
GH_AW_ENGINE ?= copilot # Default AI engine for gh-aw workflows (copilot, claude, or codex)
# Always include the Rhiza API (template-managed)
include .rhiza/rhiza.mk
# Optional: developer-local extensions (not committed)
-include local.mk
# Wire typecheck into make validate
post-validate::
@$(MAKE) typecheck
## Custom targets
##@ Quality
.PHONY: semgrep
semgrep: install ## run Semgrep static analysis (numpy rules)
@printf "${BLUE}[INFO] Running Semgrep (numpy rules)...${RESET}\n"
@if [ -d ${SOURCE_FOLDER} ]; then \
${UVX_BIN} semgrep --config .semgrep.yml ${SOURCE_FOLDER}; \
else \
printf "${YELLOW}[WARN] SOURCE_FOLDER '${SOURCE_FOLDER}' not found, skipping semgrep.${RESET}\n"; \
fi
.PHONY: license
license: install ## run license compliance scan (fail on GPL, LGPL, AGPL)
@printf "${BLUE}[INFO] Running license compliance scan...${RESET}\n"
@${UV_BIN} run --with pip-licenses pip-licenses --fail-on="GPL;LGPL;AGPL"
.PHONY: adr
adr: install-gh-aw ## Create a new Architecture Decision Record (ADR) using AI assistance
@echo "Creating a new ADR..."
@echo "This will trigger the adr-create workflow."
@echo ""
@read -p "Enter ADR title (e.g., 'Use PostgreSQL for data storage'): " title; \
echo ""; \
read -p "Enter brief context (optional, press Enter to skip): " context; \
echo ""; \
if [ -z "$$title" ]; then \
echo "Error: Title is required"; \
exit 1; \
fi; \
if [ -z "$$context" ]; then \
gh workflow run adr-create.md -f title="$$title"; \
else \
gh workflow run adr-create.md -f title="$$title" -f context="$$context"; \
fi; \
echo ""; \
echo "✅ ADR creation workflow triggered!"; \
echo ""; \
echo "The workflow will:"; \
echo " 1. Generate the next ADR number"; \
echo " 2. Create a comprehensive ADR document"; \
echo " 3. Update the ADR index"; \
echo " 4. Open a pull request for review"; \
echo ""; \
echo "Check workflow status: gh run list --workflow=adr-create.md"; \
echo "View latest run: gh run view"