Skip to content

Check file name format by regex #1103

Closed

Description

@christophehenry

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?

Activity

  1. asottile commented on Oct 24, 2024

    @asottile
    Member

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

  2. christophehenry commented on Oct 24, 2024

    @christophehenry
    Author

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

  3. asottile commented on Oct 24, 2024

    @asottile
    Member

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

  4. christophehenry commented on Oct 24, 2024

    @christophehenry
    Author

    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.

  5. asottile commented on Oct 24, 2024

    @asottile
    Member

    what have you searched?

  6. christophehenry commented on Oct 24, 2024

    @christophehenry
    Author

    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?

  7. asottile commented on Oct 24, 2024

    @asottile
    Member

    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

  8. locked as too heated and limited conversation to collaborators on Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions