fix: handle concurrent table creation race in SQLite (#151)

This commit is contained in:
Alexander Whitestone
2026-03-08 13:27:11 -04:00
committed by GitHub
parent ae3bb1cc21
commit 8dbce25183
5 changed files with 44 additions and 8 deletions

View File

@@ -1,8 +1,13 @@
#!/usr/bin/env bash
# Pre-commit hook: run tests with a wall-clock limit.
# Blocks the commit if tests fail or take too long.
# Pre-commit hook: lint + test with a wall-clock limit.
# Blocks the commit if formatting, imports, or tests fail.
# Current baseline: ~18s wall-clock. Limit set to 30s for headroom.
echo "Auto-formatting (black + isort)..."
poetry run python -m black --line-length 100 src/ tests/ --quiet
poetry run isort --profile black --line-length 100 src/ tests/ --quiet 2>/dev/null
git add -u
MAX_SECONDS=30
echo "Running tests (${MAX_SECONDS}s limit)..."