Makefile 829 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Variables
  2. PYTHON := python3
  3. PIP := $(PYTHON) -m pip
  4. PROJECT_NAME := embedchain
  5. # Targets
  6. .PHONY: install format lint clean test ci_lint ci_test coverage
  7. install:
  8. poetry install
  9. install_all:
  10. poetry install --all-extras
  11. poetry run pip install pinecone-text pinecone-client langchain-anthropic
  12. install_es:
  13. poetry install --extras elasticsearch
  14. install_opensearch:
  15. poetry install --extras opensearch
  16. install_milvus:
  17. poetry install --extras milvus
  18. shell:
  19. poetry shell
  20. py_shell:
  21. poetry run python
  22. format:
  23. $(PYTHON) -m black .
  24. $(PYTHON) -m isort .
  25. clean:
  26. rm -rf dist build *.egg-info
  27. lint:
  28. poetry run ruff .
  29. build:
  30. poetry build
  31. publish:
  32. poetry publish
  33. # for example: make test file=tests/test_factory.py
  34. test:
  35. poetry run pytest $(file)
  36. coverage:
  37. poetry run pytest --cov=$(PROJECT_NAME) --cov-report=xml