-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please tag the pre-commit commit #28
Comments
Same issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First off, thanks a ton for adding pre-commit support! That's incredibly helpful.
I got tripped up trying to install it as a hook, because most pre-commit users are used to grabbing the latest tag by default and installing from that. However, using "v0.5" here yields the cryptic pre-commit error:
It took me a little while to figure out that pre-commit support was added in Dec 2018, after the last tag was applied in Nov 2018. The workaround is to use the commit hash instead, which works, but is a bit non-standard (and certainly confusing by default).
The simple fix would be to simply tag that commit, e.g. as v0.6. Until then, here's the currently-working pre-commit config required for anyone else who runs across this error:
Thanks!
The text was updated successfully, but these errors were encountered: