-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
38 lines (32 loc) · 917 Bytes
/
Makefile
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
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}'
.PHONY: format lint
format: ## Run code formatter: black
black .
ruff check . --fix
lint: ## Run linters: mypy, black, ruff
mypy .
black . --check
ruff check .
test: ## Run tests
pytest tests
watch-docs: ## Build and watch documentation
sphinx-autobuild docs/ docs/_build/html --open-browser --watch $(GIT_ROOT)/llama_index/
build:
mypy .
black . --check
ruff check .
rm -rf dist/ build/
python -m pip install build
python -m build .
upload:
python -m pip install twine
python -m twine upload dist/portkey_ai-*
rm -rf dist
dev:
pip install -e ".[dev]"
langchain_callback:
pip install -e ".[langchain_callback]"
llama_index_callback:
pip install -e ".[llama_index_callback]"