I disagree. You don't need to run the commit-hook on all files, just on the files you changed. It shouldn't take more than to write the commit message (and I wonder if there is a way to run the git hook right when you type the commit message). And you still should do the same checks for all files in your CI.
The other way - committing, pushing, waiting on the CI, just to see the pipeline fail when all you want is to get a hotfix out to the server... it would make me furious.
The other way - committing, pushing, waiting on the CI, just to see the pipeline fail when all you want is to get a hotfix out to the server... it would make me furious.