APIDevTools / swagger-cli

Swagger 2.0 and OpenAPI 3.0 command-line tool
https://apitools.dev/swagger-cli
MIT License
515 stars 69 forks source link

Update version in pre-commit example #63

Open willienillie opened 3 years ago

willienillie commented 3 years ago

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.