Spaces:
No application file
No application file
| # Variables | |
| PYTHON := python3 | |
| PIP := $(PYTHON) -m pip | |
| PROJECT_NAME := embedchain | |
| # Targets | |
| install: | |
| poetry install | |
| install_all: | |
| poetry install --all-extras | |
| poetry run pip install pinecone-text pinecone-client | |
| install_es: | |
| poetry install --extras elasticsearch | |
| install_opensearch: | |
| poetry install --extras opensearch | |
| install_milvus: | |
| poetry install --extras milvus | |
| shell: | |
| poetry shell | |
| py_shell: | |
| poetry run python | |
| format: | |
| $(PYTHON) -m black . | |
| $(PYTHON) -m isort . | |
| clean: | |
| rm -rf dist build *.egg-info | |
| lint: | |
| poetry run ruff . | |
| build: | |
| poetry build | |
| publish: | |
| poetry publish | |
| # for example: make test file=tests/test_factory.py | |
| test: | |
| poetry run pytest $(file) | |
| coverage: | |
| poetry run pytest --cov=$(PROJECT_NAME) --cov-report=xml | |