.PHONY: all lint format test test_integration install help

# Default Python interpreter
PYTHON ?= python3

all: lint test

help:
	@echo "Available targets:"
	@echo "  install          Install package in editable mode with test deps"
	@echo "  lint             Run ruff linter"
	@echo "  format           Run ruff formatter"
	@echo "  test             Run unit tests"
	@echo "  test_integration Run integration tests (requires SARVAM_API_KEY)"

install:
	pip install -e ".[test]"

lint:
	ruff check langchain_sarvamai tests
	ruff format --check langchain_sarvamai tests

format:
	ruff check --fix langchain_sarvamai tests
	ruff format langchain_sarvamai tests

test:
	pytest tests/unit_tests/ -v

test_integration:
	pytest tests/integration_tests/ -v
