The pre-commit tool does way more than that. For example the clang-format hook will download and run a specific version of clang-format.