refactor pre-commit-hook.hb
update pre-commit-hook.hb