## What's New? - Bugfixes - Updated test suites Reviewed-on: #15 Co-authored-by: pptx704 <rafeed@omukk.dev> Co-committed-by: pptx704 <rafeed@omukk.dev>
This commit is contained in:
8
Makefile
8
Makefile
@ -1,5 +1,5 @@
|
||||
# Makefile
|
||||
.PHONY: generate lint test check test-integration test-code-runner
|
||||
.PHONY: generate gen-docs lint test check test-integration test-code-runner prune-spec
|
||||
|
||||
# Variables
|
||||
SPEC_URL = "https://raw.githubusercontent.com/wrennhq/wrenn/refs/heads/main/internal/api/openapi.yaml"
|
||||
@ -12,6 +12,8 @@ generate:
|
||||
|
||||
curl -fsSL $(SPEC_URL) -o $(SPEC_PATH)
|
||||
|
||||
$(MAKE) prune-spec
|
||||
|
||||
uv run datamodel-codegen \
|
||||
--input $(SPEC_PATH) \
|
||||
--output src/wrenn/models/_generated.py \
|
||||
@ -40,6 +42,10 @@ test-code-runner:
|
||||
|
||||
check: lint test
|
||||
|
||||
prune-spec:
|
||||
@echo "Pruning spec down to the SDK's API-key surface..."
|
||||
uv run python scripts/prune_openapi.py $(SPEC_PATH)
|
||||
|
||||
gen-docs:
|
||||
mkdir -p docs
|
||||
uv run pydoc-markdown > docs/reference.md
|
||||
|
||||
Reference in New Issue
Block a user