Makefile 577 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. .PHONY: format sort lint
  2. # Variables
  3. ISORT_OPTIONS = --profile black
  4. PROJECT_NAME := mem0ai
  5. # Default target
  6. all: format sort lint
  7. install:
  8. poetry install
  9. install_all:
  10. poetry install
  11. poetry run pip install groq together boto3 litellm
  12. # Format code with ruff
  13. format:
  14. poetry run ruff check . --fix $(RUFF_OPTIONS)
  15. # Sort imports with isort
  16. sort:
  17. poetry run isort . $(ISORT_OPTIONS)
  18. # Lint code with ruff
  19. lint:
  20. poetry run ruff .
  21. docs:
  22. cd docs && mintlify dev
  23. build:
  24. poetry build
  25. publish:
  26. poetry publish
  27. clean:
  28. poetry run rm -rf dist
  29. test:
  30. poetry run pytest