forked from MoonshotAI/kimi-agent-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (21 loc) · 652 Bytes
/
Makefile
File metadata and controls
25 lines (21 loc) · 652 Bytes
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
.DEFAULT_GOAL := check
.PHONY: help
help: ## Show available make targets.
@echo "Available make targets:"
@awk 'BEGIN { FS = ":.*## " } /^[A-Za-z0-9_.-]+:.*## / { printf " %-20s %s\n", $$1, $$2 }' $(MAKEFILE_LIST)
.PHONY: format
format: ## Auto-format sources with ruff.
@echo "==> Formatting sources"
@uv run ruff check --fix
@uv run ruff format
.PHONY: check
check: ## Run linting and type checks.
@echo "==> Checking (ruff + pyright + ty; ty is non-blocking)"
@uv run ruff check
@uv run ruff format --check
@uv run pyright
@uv run ty check || true
.PHONY: test
test: ## Run tests.
@echo "==> Running tests"
@uv run pytest tests -vv