Fix RUF200 doc to have name and email in single object (#15099)

## Summary
Closes #14975 by modifying the docstring of the InvalidPyprojectToml
rule. Previously the docs were incorrectly stating that author name and
emails must be individual items in the authors list, rather than part of
a single object for each respective author.

## Test Plan
This was a docstring change, no tests needed.
This commit is contained in:
Arnav Gupta 2024-12-22 21:00:16 -08:00 committed by GitHub
parent da8acabc55
commit b6c8f5d79e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -21,8 +21,7 @@ use ruff_macros::{derive_message_formats, ViolationMetadata};
/// name = "crab"
/// version = "1.0.0"
/// authors = [
/// { email = "ferris@example.org" },
/// { name = "Ferris the Crab"}
/// { name = "Ferris the Crab", email = "ferris@example.org" }
/// ]
/// ```
///