mirror of
https://github.com/getzep/graphiti.git
synced 2024-09-08 19:13:11 +03:00
* Makefile and format * fix podcast stuff * refactor: update import statement for transcript_parser in podcast_runner.py * format and linting * chore: Update import statements and remove unused code in maintenance module
30 lines
487 B
Makefile
30 lines
487 B
Makefile
.PHONY: install format lint test all check
|
|
|
|
# Define variables
|
|
PYTHON = python3
|
|
POETRY = poetry
|
|
PYTEST = $(POETRY) run pytest
|
|
RUFF = $(POETRY) run ruff
|
|
|
|
# Default target
|
|
all: format lint test
|
|
|
|
# Install dependencies
|
|
install:
|
|
$(POETRY) install --with dev
|
|
|
|
# Format code
|
|
format:
|
|
$(POETRY) run ruff check --select I --fix
|
|
$(POETRY) run ruff format
|
|
|
|
# Lint code
|
|
lint:
|
|
$(POETRY) run ruff check
|
|
|
|
# Run tests
|
|
test:
|
|
$(POETRY) run pytest
|
|
|
|
# Run format, lint, and test
|
|
check: format lint test |