#!/bin/sh
set -e

echo "🔍 Running checks for create-pywire-app..."

if [ -t 1 ]; then
    COLOR_ARGS="--color=yes"
else
    COLOR_ARGS="--color=no"
fi

echo "-> Testing (Multi-version)..."
# Use uv run to execute nox from dev dependencies
uv run nox

echo "Running ruff format..."
uv run --with ruff ruff format --check src/

echo "Running ty check..."
uv run --with ty ty check src/
