I have an External Tools entry
There is no such built-in functionality.
https://youtrack.jetbrains.com/issue/IDEA-111943 -- watch this ticket (star/vote/comment) to get notification on any progress.
In addition to
pre-commit git hooks .. you may try using File Watcher functionality so it automatically runs every time you save the file (some people are using such approach).