You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error when disallowed settings are defined in uv.toml (#8550)
These settings can only be defined in `pyproject.toml`, since they're
project-centric, and not _configuration_.
Closes#8539.
---------
Co-authored-by: Zanie Blue <[email protected]>
Co-authored-by: Charlie Marsh <[email protected]>
Co-authored-by: konsti <[email protected]>
#[error("Failed to parse: `{}`", _0.user_display())]
295
+
UvToml(PathBuf,#[source]Box<toml::de::Error>),
259
296
260
-
#[error("Failed to parse: `{0}`")]
261
-
UvToml(String,#[source] toml::de::Error),
297
+
#[error("Failed to parse: `{}`. The `{1}` field is not allowed in a `uv.toml` file. `{1}` is only applicable in the context of a project, and should be placed in a `pyproject.toml` file instead.", _0.user_display())]
error: Failed to parse: `uv.toml`. The `managed` field is not allowed in a `uv.toml` file. `managed` is only applicable in the context of a project, and should be placed in a `pyproject.toml` file instead.
220
+
"###
221
+
);
222
+
223
+
Ok(())
224
+
}
225
+
204
226
/// For indirect, non-user controlled pyproject.toml, we don't enforce correctness.
205
227
///
206
228
/// If we fail to extract the PEP 621 metadata, we fall back to treating it as a source
0 commit comments