#!/bin/bash
# Auto-format Python files with ruff after editing

FILE="$1"

# Only format Python files
if [[ "$FILE" == *.py ]]; then
    echo "Formatting $FILE with ruff..."
    uv run ruff format "$FILE"
fi
