Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
edit detect_private_key to ignore directories #201
Ah yeah, probably this issue: pre-commit/pre-commit#191 (comment) (running against submodules)
we plan to handle this in a more blanket way in the framework such that every hook doesn't need to guard against running on directories.
There's a wip branch which enables hooks "by type" (which would disable linting "subodule directories" by default unless a hook opted into them). @chriskuehl and I hope to finalize this branch soon (though we've both been pretty busy)