diff --git a/.githooks/pre-commit b/.githooks/pre-commit new file mode 100755 index 0000000..676f95e --- /dev/null +++ b/.githooks/pre-commit @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +set -Eeuo pipefail + +echo "==> Check Ruff lint" +uv run ruff check . + +echo "==> Check Ruff format" +uv run ruff format --check . + +echo "==> Run tests" +uv run python -m pytest -q