#!/usr/bin/env bash

set -e

cd "$(dirname "$0")/.."

echo "Setting up Fundamental Python SDK development environment..."

if ! command -v uv &>/dev/null; then
	echo "uv is not installed. Please install it first:"
	echo "   pip install uv"
	echo "   or visit: https://docs.astral.sh/uv/"
	exit 1
fi

echo "Installing dependencies with uv..."
uv pip install -e ".[dev]"

echo "Setting up pre-commit hooks..."
uv run pre-commit install
