-
-
Notifications
You must be signed in to change notification settings - Fork 144
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
Identify buf-related files #460
Conversation
Tag buf.yaml, buf.gen.yaml, and buf.lock files with `buf` and `buf-lock` tags respectively. Note: This doesn't identify custom gen files of the form buf.gen.foo.yaml as `buf`.
These would be pretty useful when working with protobuf files and buf. The one issue is that you may have multiple "gen" files, with slightly different extensions. They could be easily supported by simply registering I also didn't include the More info can be found here. |
is there a reason to add these? filtering with |
Similar reason to: #459 (comment). It's needed to avoid the limitation of having to solely use The buf pre-commit hooks already use the |
pre-commit's design of the filters does not intend to support target files plus the config files for a hook -- it's really meant to just be the target files (and the individual who is updating the config files should be running as such I don't really see a need for this particular special identification in identify and so for now I'm going to decline this |
I understand your reasoning, but I think the I do agree that's not reason enough to reconsider this. What I do think is a reason, though, is the user experience of wanting to use a third-party official hook (e.g. Anyway, I do understand your opinion here, but I hope you see my (the user) side of this and that the user experience around |
then the
it's exceedingly rare to do so, and even then it is documented with examples. again it should feel wrong because you are probably holding it wrong if you're reaching for such a thing |
Tag buf.yaml, buf.gen.yaml, and buf.lock files with
buf
andbuf-lock
tags respectively.Note: This doesn't identify custom gen files of the form buf.gen.foo.yaml as
buf
.