add global pre-commit hook.