[CI] Set up pre-commit hook to automatically check formatting
Author: chyunsu3Created Jan 18, 2023Updated Sep 1, 2026
It is massively convenient if git commit command would automatically run formatting checks. In addition, we might be able to reduce or remove the boilerplate in our homebrew linting scripts.
Source: dmlc/xgboost