Surface dedicated project.name error for workspaces (#7399)

## Summary

An extension of https://github.com/astral-sh/uv/pull/6803 to cover `uv
run`.
This commit is contained in:
Charlie Marsh 2024-09-14 16:46:21 -04:00 committed by GitHub
parent 4aad89cf06
commit e07281deb3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 37 additions and 16 deletions

View file

@ -47,7 +47,7 @@ pub enum MetadataError {
MailParse(#[from] MailParseError),
#[error("Invalid `pyproject.toml`")]
InvalidPyprojectTomlSyntax(#[source] toml_edit::TomlError),
#[error("`pyproject.toml` is using the `[project]` table, but the required `project.name` is not set.")]
#[error("`pyproject.toml` is using the `[project]` table, but the required `project.name` field is not set.")]
InvalidPyprojectTomlMissingName(#[source] toml_edit::de::Error),
#[error(transparent)]
InvalidPyprojectTomlSchema(toml_edit::de::Error),