pyproject-fmt icon indicating copy to clipboard operation
pyproject-fmt copied to clipboard

authors list does not emit correctly

Open EdAyers opened this issue 9 months ago • 2 comments

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 avatar Feb 25 '25 14:02 EdAyers

Is this still happening? If so, please consider reopening this issue on the main repo:

  • https://github.com/tox-dev/toml-fmt/tree/main/pyproject-fmt

cclauss avatar Apr 17 '25 09:04 cclauss

still happening on 2.5.1 https://github.com/tox-dev/toml-fmt/issues/41

EdAyers avatar Apr 22 '25 07:04 EdAyers