I don't know much about pre-commit hooks. I use sublime to solve most of the problems...