Update pre-commit hook to make it work in hpp files

Change-Id: I6220bde1ba39b1f6d42152a1476dfb6a00622f5d