Skip to content

authors list does not emit correctly #288

Open
@EdAyers

Description

@EdAyers
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions