forked from langchain-ai/deepagents
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (39 loc) · 1.33 KB
/
Makefile
File metadata and controls
47 lines (39 loc) · 1.33 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
PACKAGE_DIRS = libs/deepagents libs/cli libs/acp libs/harbor libs/partners/daytona libs/partners/modal libs/partners/runloop
# Map package dirs to their required Python version
# acp requires 3.14, everything else uses 3.12
python_version = $(if $(filter libs/acp,$1),3.14,3.12)
.PHONY: help lock lock-check lint format
.DEFAULT_GOAL := help
help: ## Show this help message
@echo "Usage: make [target]"
@echo ""
@echo "Targets:"
@awk 'BEGIN {FS = ":.*##"} /^[a-zA-Z_-]+:.*##/ {printf " %-20s %s\n", $$1, $$2}' $(MAKEFILE_LIST)
lock: ## Update all lockfiles
@set -e; \
for dir in $(PACKAGE_DIRS); do \
echo "🔒 Locking $$dir"; \
uv lock --directory $$dir --python $(call python_version,$$dir); \
done
@echo "✅ All lockfiles updated!"
lock-check: ## Check all lockfiles are up-to-date
@set -e; \
for dir in $(PACKAGE_DIRS); do \
echo "🔍 Checking $$dir"; \
uv lock --check --directory $$dir --python $(call python_version,$$dir); \
done
@echo "✅ All lockfiles are up-to-date!"
lint: ## Lint all packages
@set -e; \
for dir in $(PACKAGE_DIRS); do \
echo "🔍 Linting $$dir"; \
$(MAKE) -C $$dir lint; \
done
@echo "✅ All packages linted!"
format: ## Format all packages
@set -e; \
for dir in $(PACKAGE_DIRS); do \
echo "🎨 Formatting $$dir"; \
$(MAKE) -C $$dir format; \
done
@echo "✅ All packages formatted!"