chore(dependencies): Switch from tool.uv.dev-dependencies to dependency-groups.dev #518
Reference in New Issue
Block a user
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-dependenciesfield (used inpyproject.toml) is deprecated and will be removed in a future release; usedependency-groups.devinsteadDecision: Reject
Change Score: 2/10
This diff proposes changes to the
pyproject.tomlfile, specifically modifying how development dependencies are handled. The original uses atool.uvsection (likely for the uv package manager), while the proposed change shifts this to adependency-groupssection with a "dev" group.Problems:
dependency-groupssection with adevgroup is not a standard or widely recognized way to specify development dependencies inpyproject.toml. Standard practice dictates usingtool.poetry.dev-dependenciesfor Poetry ortool.pdm.dev-dependenciesfor PDM, or a similar tool-specific section. It's unclear what tool this configuration targets, making it potentially unusable and confusing.tool.uvRemoval: Removing thetool.uvsection implicitly suggests a shift away from using theuvpackage 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-dependenciessection should be used. Similarly, for PDM, thetool.pdm.dev-dependenciessection should be used. Ifuvis intended, the configuration should remain within thetool.uvnamespace.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