forked from MoonshotAI/kimi-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (26 loc) · 917 Bytes
/
Copy pathMakefile
File metadata and controls
35 lines (26 loc) · 917 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
26
27
28
29
30
31
32
33
34
35
RUFF := $(shell command -v ruff 2> /dev/null || echo "uv run ruff")
PYRIGHT := $(shell command -v pyright 2> /dev/null || echo "uv run pyright")
.DEFAULT_GOAL := prepare
.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: prepare
prepare: download-deps ## Sync dependencies using locked versions.
uv sync --frozen
.PHONY: format
format: ## Auto-format Python sources with ruff.
uv run ruff check --fix
uv run ruff format
.PHONY: check
check: ## Run linting and type checks.
uv run ruff check
uv run ruff format --check
uv run pyright
.PHONY: test
test: ## Run the test suite with pytest.
uv run pytest tests -vv
.PHONY: build
build: ## Build the standalone executable with PyInstaller.
uv run pyinstaller kimi.spec
include src/kimi_cli/deps/Makefile