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 for pyproject formatting #41

Open
EdAyers opened this issue Mar 11, 2025 · 0 comments
Open

authors list does not emit correctly for pyproject formatting #41

EdAyers opened this issue Mar 11, 2025 · 0 comments

Comments

@EdAyers
Copy link

EdAyers commented Mar 11, 2025

Reposted from tox-dev/pyproject-fmt#288

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"

There is a broken [[project.authors]] field.

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

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