Files
grm/hooks/pre-commit
T

5 lines
129 B
Bash
Executable File

#!/usr/bin/env bash
# pre-commit hook: fail if unit tests take longer than 2 seconds.
set -e
python3 scripts/check_test_speed.py