.PHONY: help
help:
	@echo "SDK Development Commands:"
	@echo "  make install     - Install dependencies"
	@echo "  make generate    - Generate models from OpenAPI spec"
	@echo "  make test        - Run tests"
	@echo "  make lint        - Run linter"
	@echo "  make lintfix    - Run linter with fix"
	@echo "  make build       - Build SDK package"
	@echo "  make audit       - Run all checks (format, lint, typecheck, test)"
	@echo ""
	@echo "Requirements:"
	@echo "  - Backend must be running: cd ../auth-manager && make dev-local"

.PHONY: install
install:
	@echo "Installing dependencies..."
	uv sync

.PHONY: generate
generate:
	@echo "Generating models from OpenAPI spec..."
	uv run python scripts/generate_models.py

.PHONY: test
test:
	uv run pytest -v

.PHONY: lint
lint:
	uv run ruff check

.PHONY: lintfix
lintfix:
	uv run ruff check --fix

.PHONY: format
format:
	uv run ruff format

.PHONY: typecheck
typecheck:
	uv run ty check

.PHONY: audit
audit: format lint typecheck test
	@echo "All checks passed!"

.PHONY: build
build: generate
	uv build

.PHONY: clean
clean:
	rm -rf dist/
	rm -rf build/
	rm -rf *.egg-info

