Summary
The scripts/pre-commit hook has the test step commented out:
# Run tests (optional - can be slow for large projects)
# Uncomment the following lines if you want to run tests before each commit:
# echo "Running tests..."
# if ! cargo test --workspace; then
Contributors who want pre-commit test validation must manually edit the script. There is no documented way to enable this. The scripts/README.md also does not mention the test step exists or how to enable it.
Tasks
Labels: dx, good first issue
Summary
The
scripts/pre-commithook has the test step commented out:Contributors who want pre-commit test validation must manually edit the script. There is no documented way to enable this. The
scripts/README.mdalso does not mention the test step exists or how to enable it.Tasks
FORGE_PRECOMMIT_TESTSenvironment variable flag: if set to1, tests run; otherwise skipped${FORGE_PRECOMMIT_TESTS:-0}scripts/README.mdto document the flag and how to enable itCONTRIBUTING.mdto reference the flagFORGE_PRECOMMIT_TESTS=1 git commitfor contributors adding new testsLabels:
dx,good first issue