pre-commit / pre-commit-hooks

Some out-of-the-box hooks for pre-commit
MIT License
5.39k stars 710 forks source link

Check file name format by regex #1103

Closed christophehenry closed 1 month ago

christophehenry commented 1 month ago

Unless I'm wrong, there's not pre-commit hook that check file names match against an authorized regexes. Would that interest you that I develop one?

asottile commented 1 month ago

you are wrong -- there's both duplicates and an entire pre-commit feature dedicated to this!

christophehenry commented 1 month ago

I'm sorry, but…Where is it documented?

asottile commented 1 month ago

have you searched at all? there's a bunch of duplicates and examples you can follow

christophehenry commented 1 month ago

Well maybe I didn't do the research with the correct words but right now I'd say we're not talking about the same thing. I'm not talking about the files option. I want a check that validates committed files have a correct naming scheme that I'd define using a regex.

asottile commented 1 month ago

what have you searched?

christophehenry commented 1 month ago

Ok, I'm not sure what's going on here… If you're saying it's documented, can you just point me to the documentation or relevant check?

asottile commented 1 month ago

I'm trying to get you to do that for me. I am not a glorified search engine and if you put in a little effort I think you'll find there are lots of answers

but if you're not going to put in any effort to answer your own question I'm not going to put in effort to help you