[minor] add pre-commit hook