chore: set up Python project skeleton with CI checks
CI / checks (pull_request) Successful in 48s

pyright skips .claude/scripts (it always adds its dot-directory exclude); ruff still checks it. The Stop hook now also runs ruff format --check, matching CI.
This commit is contained in:
kasun committed 2026-11-15 15:23:57 +01:00
1 parent 888a52b251
commit e91d05497d
7 files changed
+301

No files matched your search

+6
View File
@@ -13,6 +13,12 @@ if ! out=$(uv run --quiet ruff check . 2>&1); then
tail -n 30 <<<"$out" >&2
exit 2
fi
# Files written via Bash skip the PostToolUse formatter, so check format here like CI does.
if ! out=$(uv run --quiet ruff format --check . 2>&1); then
echo "ruff format check failed, run 'uv run ruff format .':" >&2
tail -n 30 <<<"$out" >&2
exit 2
fi
if grep -q pyright pyproject.toml && ! out=$(uv run --quiet pyright 2>&1); then
echo "pyright failed, fix before finishing:" >&2
tail -n 30 <<<"$out" >&2