* add repository guidelines and project structure documentation * update neo4j image version and modify test command to disable specific databases * implement deduplication helpers and integrate with node operations * refactor string formatting to use single quotes in node operations * enhance deduplication helpers with UUID indexing and update resolution logic * implement exact fact matching (#931)
32 lines
552 B
Makefile
32 lines
552 B
Makefile
.PHONY: install format lint test all check
|
|
|
|
# Define variables
|
|
PYTHON = python3
|
|
UV = uv
|
|
PYTEST = $(UV) run pytest
|
|
RUFF = $(UV) run ruff
|
|
PYRIGHT = $(UV) run pyright
|
|
|
|
# Default target
|
|
all: format lint test
|
|
|
|
# Install dependencies
|
|
install:
|
|
$(UV) sync --extra dev
|
|
|
|
# Format code
|
|
format:
|
|
$(RUFF) check --select I --fix
|
|
$(RUFF) format
|
|
|
|
# Lint code
|
|
lint:
|
|
$(RUFF) check
|
|
$(PYRIGHT) ./graphiti_core
|
|
|
|
# Run tests
|
|
test:
|
|
DISABLE_FALKORDB=1 DISABLE_KUZU=1 DISABLE_NEPTUNE=1 $(PYTEST) -m "not integration"
|
|
|
|
# Run format, lint, and test
|
|
check: format lint test
|