2024-07-12 07:51:33 -07:00
|
|
|
.PHONY: format sort lint
|
2023-09-28 14:54:42 -07:00
|
|
|
|
2024-07-12 07:51:33 -07:00
|
|
|
# Variables
|
|
|
|
|
ISORT_OPTIONS = --profile black
|
2024-07-19 01:58:19 +05:30
|
|
|
PROJECT_NAME := mem0ai
|
2023-09-28 14:54:42 -07:00
|
|
|
|
2024-07-12 07:51:33 -07:00
|
|
|
# Default target
|
|
|
|
|
all: format sort lint
|
2023-07-10 21:50:05 -07:00
|
|
|
|
2024-07-19 01:58:19 +05:30
|
|
|
install:
|
2025-05-20 22:58:51 +05:30
|
|
|
hatch env create
|
2024-07-19 01:58:19 +05:30
|
|
|
|
|
|
|
|
install_all:
|
2025-05-20 22:58:51 +05:30
|
|
|
pip install ruff==0.6.9 groq together boto3 litellm ollama chromadb weaviate weaviate-client sentence_transformers vertexai \
|
2025-07-04 16:26:21 -07:00
|
|
|
google-generativeai elasticsearch opensearch-py vecs "pinecone<7.0.0" pinecone-text faiss-cpu langchain-community \
|
2025-09-09 15:31:53 -07:00
|
|
|
upstash-vector azure-search-documents langchain-memgraph langchain-neo4j langchain-aws rank-bm25 pymochow pymongo psycopg kuzu databricks-sdk valkey
|
2024-07-19 01:58:19 +05:30
|
|
|
|
2024-07-12 07:51:33 -07:00
|
|
|
# Format code with ruff
|
2023-07-10 21:50:05 -07:00
|
|
|
format:
|
2025-05-20 22:58:51 +05:30
|
|
|
hatch run format
|
2023-07-10 21:50:05 -07:00
|
|
|
|
2024-07-12 07:51:33 -07:00
|
|
|
# Sort imports with isort
|
|
|
|
|
sort:
|
2025-05-20 22:58:51 +05:30
|
|
|
hatch run isort mem0/
|
2023-07-10 21:50:05 -07:00
|
|
|
|
2024-07-12 07:51:33 -07:00
|
|
|
# Lint code with ruff
|
2023-10-12 15:35:49 -07:00
|
|
|
lint:
|
2025-05-20 22:58:51 +05:30
|
|
|
hatch run lint
|
2024-07-12 07:51:33 -07:00
|
|
|
|
|
|
|
|
docs:
|
|
|
|
|
cd docs && mintlify dev
|
2023-07-15 21:34:06 -07:00
|
|
|
|
2024-02-21 13:04:03 -08:00
|
|
|
build:
|
2025-05-20 22:58:51 +05:30
|
|
|
hatch build
|
2024-02-21 13:04:03 -08:00
|
|
|
|
|
|
|
|
publish:
|
2025-05-20 22:58:51 +05:30
|
|
|
hatch publish
|
2024-02-21 13:04:03 -08:00
|
|
|
|
2024-07-12 07:51:33 -07:00
|
|
|
clean:
|
2025-05-20 22:58:51 +05:30
|
|
|
rm -rf dist
|
2024-07-19 01:58:19 +05:30
|
|
|
|
|
|
|
|
test:
|
2025-05-20 22:58:51 +05:30
|
|
|
hatch run test
|
2025-06-14 05:13:16 -07:00
|
|
|
|
|
|
|
|
test-py-3.10:
|
|
|
|
|
hatch run dev_py_3_10:test
|
|
|
|
|
|
|
|
|
|
test-py-3.11:
|
|
|
|
|
hatch run dev_py_3_11:test
|
2025-08-13 01:31:41 +05:30
|
|
|
|
|
|
|
|
test-py-3.12:
|
|
|
|
|
hatch run dev_py_3_12:test
|