Makefile 655 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. install_es:
  12. poetry install --extras elasticsearch
  13. install_opensearch:
  14. poetry install --extras opensearch
  15. install_milvus:
  16. poetry install --extras milvus
  17. shell:
  18. poetry shell
  19. py_shell:
  20. poetry run python
  21. format:
  22. $(PYTHON) -m black .
  23. $(PYTHON) -m isort .
  24. clean:
  25. rm -rf dist build *.egg-info
  26. lint:
  27. poetry run ruff .
  28. test:
  29. poetry run pytest $(file)
  30. coverage:
  31. poetry run pytest --cov=$(PROJECT_NAME) --cov-report=xml