Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (38 loc) · 1.43 KB
/
Copy pathMakefile
File metadata and controls
45 lines (38 loc) · 1.43 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
.PHONY: help install format test build validate
# `make` on its own lists the targets rather than running the first one.
.DEFAULT_GOAL := help
## Show this help
help:
@echo "Usage: make <target>"
@echo
@awk '/^## /{desc=substr($$0,4); next} \
/^[a-z][a-z-]*:/{split($$0,t,":"); printf " \033[36m%-15s\033[0m %s\n", t[1], desc; desc=""}' \
$(MAKEFILE_LIST)
@echo
@echo "Notes:"
@echo " install core only; uv sync REMOVES anything outside that set."
@echo " Use 'make install extras=1' for a dev environment."
@echo " format the one command to run before committing"
@echo " build local artifact check only; publishing happens in the"
@echo " release workflow after a merge to main, never by hand"
@echo
@echo "CI runs the underlying ruff/ty/pytest commands directly rather than"
@echo "these targets, so it can never mutate the tree to make itself pass."
@echo "Secret scanning (gitleaks) runs in CI only."
## Install dependencies (extras=1 adds adapters, examples and dev tooling)
install:
uv sync --locked $(if $(extras),--all-extras,)
## Fix lint, format, and type check (needs make install extras=1)
format:
uv run ruff check --fix .
uv run ruff format .
uv run ty check stackone_ai examples
## Run all tests
test:
uv run pytest
## Validate against the conformance mock (no live API, no credentials)
validate:
./scripts/validate.sh
## Build package
build:
uv build