Enabling patch checks to pre-commit hook.