-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
66 lines (52 loc) · 1.42 KB
/
Makefile
File metadata and controls
66 lines (52 loc) · 1.42 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
62
63
64
65
66
.PHONY: install
install: ## Install all dependencies.
@make install/all
.PHONY: install/core
install/core: ## Install core dependencies.
@uv sync
.PHONY: install/all
install/all: ## Install all dependencies.
@uv sync --all-groups --all-extras
.PHONY: install/dev
install/dev: ## Install dev dependencies.
@uv sync --group dev
.PHONY: install/test
install/test: ## Install test dependencies.
@uv sync --group test
.PHONY: gen/sdk
gen/sdk: ## Generate the Griptape Cloud SDK.
@uv run scripts/gen_sdk.py
.PHONY: lint
lint: ## Lint project.
@uv run ruff check --fix
.PHONY: format
format: ## Format project.
@uv run ruff format
@uv run mdformat .
.PHONY: fix
fix: ## Fix project.
@make format
@uv run ruff check --fix --unsafe-fixes
.PHONY: check
check: check/format check/lint check/types check/spell ## Run all checks.
.PHONY: check/format
check/format:
@uv run ruff format --check
@uv run mdformat --check .github griptape_cloud_client *.md
.PHONY: check/lint
check/lint:
@uv run ruff check
.PHONY: check/types
check/types:
@uv run pyright .
.PHONY: check/spell
check/spell:
@uv run typos
.DEFAULT_GOAL := help
.PHONY: help
help: ## Print Makefile help text.
@# Matches targets with a comment in the format <target>: ## <comment>
@# then formats help output using these values.
@grep -E '^[a-zA-Z_\/-]+:.*?## .*$$' $(MAKEFILE_LIST) \
| awk 'BEGIN {FS = ":.*?## "}; \
{printf "\033[36m%-12s\033[0m%s\n", $$1, $$2}'