-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.forge
More file actions
33 lines (26 loc) · 1.11 KB
/
Makefile.forge
File metadata and controls
33 lines (26 loc) · 1.11 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
# forge ship-check — friction-killer for the test→lint→wire→certify loop.
#
# Each commit I was doing this by hand (5+ commands). Hardwired now.
# Use: make -f Makefile.forge ship-check
# (Renamed to Makefile.forge so it doesn't collide with any existing
# project Makefile in customer repos that install forge.)
.PHONY: ship-check ship-check-fast lint test wire certify
ship-check: lint test wire certify
@echo
@echo "===================================="
@echo " ship-check PASS — ready to commit"
@echo "===================================="
ship-check-fast: lint test
@echo "ship-check-fast PASS (skipped wire+certify)"
lint:
@echo "[1/4] ruff..."
@python -m ruff check src/atomadic_forge tests || (python -m ruff check --fix src/atomadic_forge tests && python -m ruff check src/atomadic_forge tests)
test:
@echo "[2/4] pytest..."
@python -m pytest -q
wire:
@echo "[3/4] forge wire..."
@python -m atomadic_forge.a4_sy_orchestration.cli wire src/atomadic_forge --fail-on-violations
certify:
@echo "[4/4] forge certify..."
@python -m atomadic_forge.a4_sy_orchestration.cli certify . --fail-under 100