Skip to content
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

authors list does not emit correctly #288

Open
EdAyers opened this issue Feb 25, 2025 · 0 comments
Open

authors list does not emit correctly #288

EdAyers opened this issue Feb 25, 2025 · 0 comments

Comments

@EdAyers
Copy link

EdAyers commented Feb 25, 2025

uv tool install pyproject-fmt
pyproject-fmt
>>> pyproject-fmt (2.5.0)

My pyproject file:

[project]
name = "my-app"
description = "My app"
version = "1.13.1"
requires-python = "<3.14,>=3.12"
[[project.authors]]
name = "Joe Blogs"
email = "[email protected]"

After running pyproject-fmt pyproject.toml

[project]
name = "my-app"
version = "1.13.1"
description = "My app"
authors.email = "[email protected]"
authors.name = "Joe Blogs"
[[project.authors]]

classifiers = [
  "Programming Language :: Python :: 3 :: Only",
  "Programming Language :: Python :: 3.12",
  "Programming Language :: Python :: 3.13",
]
requires-python = "<3.14,>=3.12"

Note the remaining broken [[project.authors]] field.

toml spec for array of tables: https://toml.io/en/v1.0.0#array-of-tables

@EdAyers EdAyers changed the title mangled file with authors list authors list does not emit correctly Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant