In output of this pre-commit hook, we only see that the convention is not followed properly:
Your commit message does not follow Conventional Commits formatting
https://www.conventionalcommits.org/
Use the --verbose arg for more information
It would be even more helpful if we could have a dedicated error in the output when the hook fails du to invalid scope. The output could be:
The scope <scope> isn't defined in the supported list of scopes:
<list of supported scopes>
Is that feasible ?