mirror of
https://github.com/getzep/graphiti.git
synced 2025-06-27 02:00:02 +00:00

* chore: Folder rearrangement * chore: Remove unused deps, and add mypy step in CI for graph-service * fix: Mypy errors * fix: linter * fix mypy * fix mypy * chore: Update docker setup * chore: Reduce graph service image size * chore: Install graph service deps on CI * remove cache from typecheck * chore: install graph-service deps on typecheck action * update graph service mypy direction * feat: Add release service image step * chore: Update depot configuration * chore: Update release image job to run on releases * chore: Test depot multiplatform build * update release action tag * chore: Update action to be in accordance with zep image publish * test * test * revert * chore: Update python slim image used in service docker * chore: Remove unused endpoints and dtos
32 lines
531 B
Makefile
32 lines
531 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) . --show-column-numbers --show-error-codes --pretty
|
|
|
|
# Run tests
|
|
test:
|
|
$(PYTEST)
|
|
|
|
# Run format, lint, and test
|
|
check: format lint test |