forked from mem0ai/mem0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (30 loc) · 590 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
.PHONY: format sort lint
# Variables
ISORT_OPTIONS = --profile black
PROJECT_NAME := mem0ai
# Default target
all: format sort lint
install:
poetry install
install_all:
poetry install
poetry run pip install groq together boto3 litellm ollama
# Format code with ruff
format:
poetry run ruff check . --fix $(RUFF_OPTIONS)
# Sort imports with isort
sort:
poetry run isort . $(ISORT_OPTIONS)
# Lint code with ruff
lint:
poetry run ruff .
docs:
cd docs && mintlify dev
build:
poetry build
publish:
poetry publish
clean:
poetry run rm -rf dist
test:
poetry run pytest tests