mirror of
https://github.com/run-llama/llama_cloud_services.git
synced 2026-07-01 21:44:37 -04:00
87dec5433d
* Add timeouts * Session timeouts too
19 lines
793 B
Makefile
19 lines
793 B
Makefile
GIT_ROOT ?= $(shell git rev-parse --show-toplevel)
|
|
|
|
help: ## Show all Makefile targets.
|
|
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[33m%-30s\033[0m %s\n", $$1, $$2}'
|
|
|
|
format: ## Run code autoformatters (black).
|
|
uv run pre-commit install
|
|
git ls-files | xargs uv run pre-commit run black --files
|
|
|
|
lint: ## Run linters: pre-commit (black, ruff, codespell) and mypy
|
|
uv run pre-commit install && git ls-files | xargs uv run pre-commit run --show-diff-on-failure --files
|
|
|
|
test: ## Run unit tests via pytest
|
|
uv run pytest -v unit_tests/
|
|
|
|
.PHONY: e2e
|
|
e2e: ## Run all tests. Run with high parallelism using xdist since tests are bottlenecked bound by the slow backend parsing
|
|
uv run pytest -v -n 32 --timeout=300 --session-timeout=1740 tests/
|