updates pre-commit hook to include timeout