add pre-commit hook to root