#!/bin/sh
if uv run --project tools/dev --locked --only-group dev ruff check python tests benchmarks scripts; then
    :
else
    printf 'Python lint check failed; run make lint before committing\n' >&2
    exit 1
fi
if uv run --project tools/dev --locked --only-group dev ruff format --check python tests benchmarks scripts; then
    :
else
    printf 'Python formatting check failed; run make lint before committing\n' >&2
    exit 1
fi
