title: Make pre-commit hooks ignore submodules
body: <p>I have a git repo with a couple of submodules whose code contents are out of my control. I would like to ignore these submodules in all <a href="https://pre-commit.com/" rel="nofollow noreferrer">pre-commit</a> hooks. Is there any way of achieving this short of manually specifying the folders in which these submodules reside for every individual hook?</p>