Extend pre-commit hook