# Makefile

# Directories
TESTS_DIR := tests

# Commands
ISORT := isort
BLACK := black
MYPY := mypy
PYTEST := pytest

# Exclude patterns
ISORT_EXCLUDE := --skip=output
BLACK_EXCLUDE := --exclude=output
MYPY_EXCLUDE := --exclude=output

.PHONY: lint test

lint:
	@echo "Running isort..."
	$(ISORT) . $(ISORT_EXCLUDE)
	@echo "Running black..."
	$(BLACK) . $(BLACK_EXCLUDE)
	@echo "Running mypy..."
	$(MYPY) . $(MYPY_EXCLUDE)

test:
	@echo "Running tests..."
	$(PYTEST) $(TESTS_DIR)

all: lint test