Also fix clang-format pre-commit hook to ignore thirdparty files. (cherry picked from commit fa2d5b91dc)
fa2d5b91dc
Derived from https://github.com/githubbrowser/Pre-commit-hooks and https://gitlab.cern.ch/GeantV/geant/blob/master/hooks/pre-commit-clang-format (cherry picked from commit 0e4ee5935a)
0e4ee5935a