You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current behavior of the pyproject-fmt package does not align with PEP 621 regarding the definition of script entry points. According to PEP 621, script entry points should be defined under a [project.scripts] table. However, pyproject-fmt removes the [project.scripts] table if it exists and instead adds an entry to the pyproject.toml file as scripts.PACKAGE_NAME.
This behavior is problematic for projects that follow PEP 621 standards and expect script entry points to be defined under the [project.scripts] table. It would be beneficial for pyproject-fmt to support the [project.scripts] table and define script entry points accordingly.
The text was updated successfully, but these errors were encountered:
PEP 621 does not mandate the layout of the file. If you believe it does, you're reading it incorrectly. PEP-621 defines the structure, but the layout can be any valid TOML. Just because the examples use one format, that's a personal preference of the PEP author, not a mandate. From a TOML POV:
The current behavior of the pyproject-fmt package does not align with PEP 621 regarding the definition of script entry points. According to PEP 621, script entry points should be defined under a [project.scripts] table. However, pyproject-fmt removes the [project.scripts] table if it exists and instead adds an entry to the pyproject.toml file as scripts.PACKAGE_NAME.
This behavior is problematic for projects that follow PEP 621 standards and expect script entry points to be defined under the [project.scripts] table. It would be beneficial for pyproject-fmt to support the [project.scripts] table and define script entry points accordingly.
The text was updated successfully, but these errors were encountered: