pyproject-fmt
pyproject-fmt copied to clipboard
authors list does not emit correctly
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
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
still happening on 2.5.1 https://github.com/tox-dev/toml-fmt/issues/41