.PHONY: install test lint format type-check ci fix clean docs docs-build landing

# Install all dependencies (dev + test)
install:
	uv sync --group dev --extra test

# Run all tests
test:
	uv run pytest tests/ -v --tb=short

# Lint with ruff
lint:
	uv run ruff check bluefox_cloud/ tests/

# Type check with ty
type-check:
	uv run ty check bluefox_cloud/ tests/

# Check formatting
format:
	uv run ruff format --check bluefox_cloud/ tests/

# Full CI pipeline: lint, format, type-check, tests
ci: lint format type-check test

# Auto-fix lint issues
fix:
	uv run ruff check --fix bluefox_cloud/ tests/
	uv run ruff format bluefox_cloud/ tests/

# Serve docs locally
docs:
	uv run mkdocs serve

# Build docs
docs-build:
	uv run mkdocs build

# Serve landing page locally
landing:
	python -m http.server 8090 --directory landing

# Remove build artifacts
clean:
	rm -rf site/ dist/ *.egg-info .pytest_cache
