Pre-commit hook to do appropriate linting before commit.