mem0/Makefile

53 lines
990 B
Makefile
Raw Permalink Normal View History

.PHONY: format sort lint
# Variables
ISORT_OPTIONS = --profile black
2024-07-19 01:58:19 +05:30
PROJECT_NAME := mem0ai
# Default target
all: format sort lint
2023-07-10 21:50:05 -07:00
2024-07-19 01:58:19 +05:30
install:
hatch env create
2024-07-19 01:58:19 +05:30
install_all:
pip install ruff==0.6.9 groq together boto3 litellm ollama chromadb weaviate weaviate-client sentence_transformers vertexai \
google-generativeai elasticsearch opensearch-py vecs "pinecone<7.0.0" pinecone-text faiss-cpu langchain-community \
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
# Format code with ruff
2023-07-10 21:50:05 -07:00
format:
hatch run format
2023-07-10 21:50:05 -07:00
# Sort imports with isort
sort:
hatch run isort mem0/
2023-07-10 21:50:05 -07:00
# Lint code with ruff
lint:
hatch run lint
docs:
cd docs && mintlify dev
2023-07-15 21:34:06 -07:00
build:
hatch build
publish:
hatch publish
clean:
rm -rf dist
2024-07-19 01:58:19 +05:30
test:
hatch run test
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