It is recommended to setup pre-commit locally:
pre-commit
pip install pre-commit pre-commit install pip install cpplint