graphiti/Makefile
Daniel Chalef 73ec0146ff
ruff action (#17)
* ruff action

* chore: Update Python version to 3.10 in lint.yml workflow

* fix lint and formatting

* cleanup
2024-08-22 13:06:42 -07:00

32 lines
No EOL
482 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) .
# Run tests
test:
$(PYTEST)
# Run format, lint, and test
check: format lint test