From f51ab1de82a4cbe53677d5bf950c80b4ad3136f6 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Mon, 14 Oct 2024 15:15:46 -0500 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Mathieu Kniewallner --- crates/uv-workspace/src/pyproject.rs | 2 +- crates/uv-workspace/src/pyproject_mut.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/uv-workspace/src/pyproject.rs b/crates/uv-workspace/src/pyproject.rs index d219ff8fc4c40..5778d9e1e7508 100644 --- a/crates/uv-workspace/src/pyproject.rs +++ b/crates/uv-workspace/src/pyproject.rs @@ -1055,7 +1055,7 @@ pub enum DependencyType { Dev, /// A dependency in `project.optional-dependencies.{0}`. Optional(ExtraName), - /// A dependency in `project.dependency-groups.{0}`. + /// A dependency in `dependency-groups.{0}`. Group(ExtraName), } diff --git a/crates/uv-workspace/src/pyproject_mut.rs b/crates/uv-workspace/src/pyproject_mut.rs index 2c39b5626ce59..496df0310062b 100644 --- a/crates/uv-workspace/src/pyproject_mut.rs +++ b/crates/uv-workspace/src/pyproject_mut.rs @@ -495,7 +495,7 @@ impl PyProjectTomlMut { } } - // Check `tool.uv.dev-dependencies`. + // Check `dependency-groups`. if let Some(groups) = self.doc.get("dependency-groups").and_then(Item::as_table) { for (group, dependencies) in groups { let Some(dependencies) = dependencies.as_array() else {