Files
devx/hooks/pre-commit
T
emil 77c2f7e043
Post-merge / detect-and-configure (push) Successful in 11s
Post-merge / release-and-maintain (push) Failing after 27s
DEVX-129: feat: test isolation pytest plugin, shift-left quality gates, dep upgrades
2026-07-13 00:57:28 +00:00

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/