Files
devx/hooks/pre-commit
T
emil 31bfd23fea
Post-merge / detect-type (push) Successful in 17s
Post-merge / validate-commit-msg (push) Successful in 16s
Post-merge / vikunja (push) Successful in 12s
Post-merge / configure-repo (push) Failing after 13s
Post-merge / release (push) Failing after 1m5s
Post-merge / sync-wiki (push) Successful in 1m2s
Post-merge / badges (push) Failing after 28s
DEVX-1: fix: use python3 and venv python in workflows and Makefile
2026-06-22 15:52:45 +00:00

7 lines
230 B
Bash
Executable File

#!/usr/bin/env bash
# pre-commit hook: fail if unit tests take longer than 10 seconds.
# Aligned with CI timeout (ci.yml uses --max-seconds 10).
set -e
export PYTHONPATH=src
python3 -m devx.tools.check_test_speed --max-seconds 10