-
Notifications
You must be signed in to change notification settings - Fork 114
Expand file tree
/
Copy pathMakefile
More file actions
61 lines (48 loc) · 1.58 KB
/
Copy pathMakefile
File metadata and controls
61 lines (48 loc) · 1.58 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
.PHONY: format check check-python test test-core test-typescript test-python test-go build-absurdctl build-absurdctl-pypi docs serve-docs
# Format all code
format:
@cd sdks/typescript && npx prettier -w .
@cd habitat/ui && npx prettier -w .
@uvx ruff format tests sdks/python
@gofmt -w habitat
@gofmt -w sdks/go/absurd
ZENSICAL_VERSION ?= 0.0.21
# Build documentation site
docs:
@uvx --from "zensical==$(ZENSICAL_VERSION)" zensical build
@touch site/.nojekyll
# Serve documentation locally with live reload
serve-docs:
@uvx --from "zensical==$(ZENSICAL_VERSION)" zensical serve
# Build bundled absurdctl artifacts with embedded schema + migrations
build-absurdctl:
@./scripts/build-absurdctl
# Build the PyPI staging directory for absurdctl
build-absurdctl-pypi:
@./scripts/build-absurdctl --pypi-only
# Run static checks
check: check-python
# Run Python SDK type checks
check-python:
@echo "Running Python SDK type checks"
@cd sdks/python && uv run --all-groups --with ty ty check
# Run all tests
test: test-core test-typescript test-python test-go
# Run core tests
test-core:
@echo "Running core tests"
@cd tests; uv run pytest
# Run TypeScript SDK checks and tests
test-typescript:
@echo "Running TypeScript SDK checks and tests"
@cd sdks/typescript && npm run type-check && npm run test
# Run Python SDK tests
test-python:
@echo "Running Python SDK tests"
@cd sdks/python; uv run pytest
# Run Go SDK tests
test-go:
@echo "Running Go SDK tests (root module)"
@cd sdks/go/absurd && go test ./...
@echo "Running Go SDK tests (integration module)"
@cd sdks/go/tests && go test ./...