graphiti/Makefile
Daniel Chalef c5e52153c4
chore: Fix packaging (#38)
* feat: Update project name and description

The project name and description in the `pyproject.toml` file have been updated to reflect the changes made to the project.

* chore: Update pyproject.toml to include core package

The `pyproject.toml` file has been updated to include the `core` package in the list of packages. This change ensures that the `core` package is included when building the project.

* fix imports

* fix importats
2024-08-25 10:07:50 -07:00

32 lines
545 B
Makefile

.PHONY: install format lint test all check
# Define variables
PYTHON = python3
POETRY = poetry
PYTEST = $(POETRY) run pytest
RUFF = $(POETRY) run ruff
MYPY = $(POETRY) run mypy
# Default target
all: format lint test
# Install dependencies
install:
$(POETRY) install --with dev
# Format code
format:
$(RUFF) check --select I --fix
$(RUFF) format
# Lint code
lint:
$(RUFF) check
$(MYPY) ./graphiti_core --show-column-numbers --show-error-codes --pretty
# Run tests
test:
$(PYTEST)
# Run format, lint, and test
check: format lint test