Skip to content

invalid-pyproject-toml (RUF200)#

What it does#

Checks for any pyproject.toml that does not conform to the schema from the relevant PEPs.

Why is this bad?#

Your project may contain invalid metadata or configuration without you noticing

Example#

[project]
name = "crab"
version = "1.0.0"
authors = ["Ferris the Crab <ferris@example.org>"]

Use instead:

[project]
name = "crab"
version = "1.0.0"
authors = [
  { email = "ferris@example.org" },
  { name = "Ferris the Crab"}
]

References#