fix: handle concurrent table creation race in SQLite (#151)
This commit is contained in:
committed by
GitHub
parent
ae3bb1cc21
commit
8dbce25183
@@ -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)..."
|
||||
|
||||
Reference in New Issue
Block a user