chore(dependencies): Switch from tool.uv.dev-dependencies to dependency-groups.dev #518
Reference in New Issue
Block a user
No description provided.
Delete Branch "luke-patch-1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
warning: The
tool.uv.dev-dependencies
field (used inpyproject.toml
) is deprecated and will be removed in a future release; usedependency-groups.dev
insteadDecision: Reject
Change Score: 2/10
This diff proposes changes to the
pyproject.toml
file, specifically modifying how development dependencies are handled. The original uses atool.uv
section (likely for the uv package manager), while the proposed change shifts this to adependency-groups
section with a "dev" group.Problems:
dependency-groups
section with adev
group is not a standard or widely recognized way to specify development dependencies inpyproject.toml
. Standard practice dictates usingtool.poetry.dev-dependencies
for Poetry ortool.pdm.dev-dependencies
for PDM, or a similar tool-specific section. It's unclear what tool this configuration targets, making it potentially unusable and confusing.tool.uv
Removal: Removing thetool.uv
section implicitly suggests a shift away from using theuv
package manager without explicitly stating the alternative. If the project intends to switch to a different tool, it should be clearly articulated and the configuration should align with the conventions of the new tool.Recommendation:
Reject this change. Instead, clarify which packaging tool the project intends to use and adopt the corresponding standard configuration for development dependencies. If the project aims to use Poetry, the
tool.poetry.dev-dependencies
section should be used. Similarly, for PDM, thetool.pdm.dev-dependencies
section should be used. Ifuv
is intended, the configuration should remain within thetool.uv
namespace.Example (assuming Poetry):
or (assuming PDM):
Switch from tool.uv.dev-dependencies to dependency-groups.devto chore(dependencies): Switch from tool.uv.dev-dependencies to dependency-groups.dev