Comment #2 on issue 1042 by xmnlab: [question] Pre-commit hook
https://github.com/include-what-you-use/include-what-you-use/issues/1042
thanks for your answer @kimgr. when you use a git commit with any git commit hook, if it hit any issue or if it change any file, it normally raises an error and the commit is blocked, so in order to finish it, you should run it again (and fix any issue pointed) in order to finish the commit. for python, for example, we can use black (general code auto formatter) and isort (for ordering the imports).
but as you pointed that IWYU has bugs, maybe it would be hard to force it as a pre-commit hook.
thank you so much for your explanation!