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
Do version numbers have to have a '.'? #1794
Comments
thanks for the issue, you're correct this warning is new in pre-commit 2.10 (#1715) but shouldn't be triggered in your case (it's there to warn when you are pointing to for now (until the detection is improved/updated) you could use the (short) |
okay cheers, that does that job |
yeah unfortunately due to moving tags we're using a string validation for whether something looks like a mutable reference. the other unfortunate bit is I've seen the warning is mostly intended to catch conventionally floating things like |
Could it be changed to something like
Thus having what you have now but also allowing i.e. |
a change like that could work but:
so I'm not sure if that would be a good idea. |
ah okay, sorry didn't really know what you meant by that |
yeah so for now I'm going to answer this issue as "yes" -- we may revisit if this comes up more frequently |
Looking at this line it looks to be testing for the presence of a dot in the version number
pre-commit/pre_commit/clientlib.py
Line 124 in d827e9a
v1
/v2
model?I'm using this repo https://gitlab.salort.eu/jsalort/latexhook/-/tags which has a
v1
tag. My.pre-commit-config.yaml
looks like this:This means every time i commit I get this error at the top
My version is
pre-commit==2.10.1
and I don't think this used to happenThe text was updated successfully, but these errors were encountered: