Skip to content

Warning when module name contains hyphens #1003

Closed

Description

@LLyaudet

Hello,
Would you be interested in adding a warning when the module under src directory contains hyphens/is not a valid python identifier?
pypa/packaging.python.org#1316
Best regards,
Laurent Lyaudet

Activity

  1. ofek commented on Nov 30, 2023

    @ofek
    SponsorContributor

    Closing since we have pypa/packaging.python.org#1424

  2. LLyaudet commented on Nov 30, 2023

    @LLyaudet
    Author

    Hello @ofek :)

    Are you sure that it would not be better to have a warning in Hatch program on top of the warning in the tutorial ?

    The goal of this issue was not exactly the same as the goal of issue pypa/packaging.python.org#1316

    Moreover even the warning in the tutorial is subject to barrage fire right now.
    I still think a simple warning like "Hatch found the module blabla that is not a valid Python identifier." would be a nice addition.

    Best regards,
    Laurent Lyaudet

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions