The current pre-commit install instructions are listed before the “Compile and build” section:
$ pre-commit install --allow-missing-config
pre-commit installed at .git/hooks/pre-commit
This doesn't work before pre-commit itself is installed, and it can't be installed if one doesn't have Python yet.