Public Access
16 lines
632 B
Bash
Executable File
16 lines
632 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# pre-commit hook: fast local quality gates that shift-left CI checks.
|
|
# Runs test speed, translation completeness, and test isolation checks.
|
|
# All of these run in CI — failing here saves a round-trip.
|
|
set -e
|
|
export PYTHONPATH=src
|
|
|
|
# Test speed: total suite < 4s, individual tests < 0.5s
|
|
python3 -m devx.tools.check_test_speed --max-seconds 4 --max-single-seconds 0.5
|
|
|
|
# Translation completeness: missing keys, dead keys, missing languages
|
|
python3 -m devx.ci.check_translations
|
|
|
|
# Test isolation: unpatched subprocess/time.sleep in test functions
|
|
python3 -m devx.tools.check_test_isolation --test-path tests/
|