-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (27 loc) · 1.21 KB
/
Makefile
File metadata and controls
38 lines (27 loc) · 1.21 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
.PHONY: help build format lint type typecheck test tests integration_test integration_tests
.DEFAULT_GOAL := help
help: ## Show this help message
@echo "Usage: make [target]"
@echo ""
@echo "Targets:"
@awk 'BEGIN {FS = ":.*##"} /^[a-zA-Z0-9_. -]+:.*##/ {printf " %-16s %s\n", $$1, $$2}' $(MAKEFILE_LIST)
test tests: TEST_FILE ?= tests/unit_tests/
integration_test integration_tests: TEST_FILE=tests/integration_tests/
test: ## Run unit tests
test tests:
uv run --group test pytest -vvv $(PYTEST_EXTRA) --disable-socket --allow-unix-socket $(TEST_FILE)
integration_test: ## Run integration tests
integration_test integration_tests:
uv run --group test pytest -vvv --timeout 30 $(TEST_FILE)
build: ## Build sdist and wheel into dist/
uv build
lint: ## Ruff (package + examples) and ty
uv run --group test ruff check langchain_leap0 examples
uv run --group test ruff format langchain_leap0 examples --check
uv run --group test ty check langchain_leap0
format: ## Ruff format and fixes (package + examples)
uv run --group test ruff format langchain_leap0 examples
uv run --group test ruff check --fix langchain_leap0 examples
type: ## Run ty type checker
uv run --group test ty check langchain_leap0
typecheck: type