Allow unknown pyproject.toml fields (#3511)

Fixes #3510, we use typo error messages though.

Tested manually by adding `[tool.uv.pip]`, we should add proper tests
for this feature.
This commit is contained in:
konsti
2024-05-10 20:50:24 +02:00
committed by GitHub
parent 783df8f657
commit 45a2594de6
2 changed files with 1 additions and 5 deletions
-2
View File
@@ -109,7 +109,6 @@ pub struct Tool {
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
#[serde(deny_unknown_fields)]
pub struct ToolUv {
pub sources: Option<HashMap<PackageName, Source>>,
pub workspace: Option<ToolUvWorkspace>,
@@ -117,7 +116,6 @@ pub struct ToolUv {
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
#[serde(deny_unknown_fields)]
pub struct ToolUvWorkspace {
pub members: Option<Vec<SerdePattern>>,
pub exclude: Option<Vec<SerdePattern>>,
+1 -3
View File
@@ -58,7 +58,6 @@
]
}
},
"additionalProperties": false,
"definitions": {
"AnnotationStyle": {
"description": "Indicate the style of annotation comments, used to indicate the dependencies that requested each package.",
@@ -916,8 +915,7 @@
"$ref": "#/definitions/String"
}
}
},
"additionalProperties": false
}
}
}
}