Fix CI tests for Mem0 (#1498)

This commit is contained in:
Dev Khant
2024-07-19 01:58:19 +05:30
committed by GitHub
parent a546a9f56a
commit e9136c1aa0
4 changed files with 78 additions and 8 deletions

View File

@@ -1,12 +1,18 @@
.PHONY: format sort lint
# Variables
RUFF_OPTIONS = --line-length 120
ISORT_OPTIONS = --profile black
PROJECT_NAME := mem0ai
# Default target
all: format sort lint
install:
poetry install
install_all:
poetry install
# Format code with ruff
format:
poetry run ruff check . --fix $(RUFF_OPTIONS)
@@ -17,7 +23,7 @@ sort:
# Lint code with ruff
lint:
poetry run ruff check . $(RUFF_OPTIONS)
poetry run ruff .
docs:
cd docs && mintlify dev
@@ -30,3 +36,6 @@ publish:
clean:
poetry run rm -rf dist
test:
poetry run pytest