The old version in the example was not working for me.
pre-commit installed at .git/hooks/pre-commit
[INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks.
[INFO] Initializing environment for https://github.com/pre-commit/mirrors-yapf.
[INFO] Initializing environment for https://github.com/pre-commit/mirrors-pylint.
[INFO] Initializing environment for https://github.com/APIDevTools/swagger-cli.
An error has occurred: InvalidManifestError:
=====> /<path-to-my-home-dir>/.cache/pre-commit/repobjoiqw90/.pre-commit-hooks.yaml does not exist
Check the log at / /<path-to-my-home-dir>/.cache/pre-commit/pre-commit.log
Updating to the latest, v4.0.4 version fixed this issue.
The old version in the example was not working for me.
Updating to the latest, v4.0.4 version fixed this issue.