Skip to content

Move default dependency groups onto workspace types - #1803

Draft
zaniebot wants to merge 1 commit into
mainfrom
zb/default-groups-on-workspace-20260914
Draft

zaniebot wants to merge 1 commit into
mainfrom
zb/default-groups-on-workspace-20260914

Conversation

@zaniebot

Copy link
Copy Markdown
Collaborator

Project commands currently obtain default dependency groups by extracting a pyproject.toml and calling a command-layer helper. This exposes which manifest supplies the defaults at each call site, including when a workspace member is selected.

Move the lookup and validation into uv-workspace and expose default_groups() on Workspace, WorkspaceMember, ProjectWorkspace, and VirtualProject. The command call sites use those accessors without changing the implicit dev group, configured-group validation, or root-versus-member behavior. This also gives astral-sh#21618 a higher-level API for selecting each export's defaults.

@astral-automations-bot astral-automations-bot Bot added the internal A refactor or improvement that is not user-facing label Sep 14, 2026
@codspeed

codspeed Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 25 untouched benchmarks


Comparing zb/default-groups-on-workspace-20260914 (79e821e) with main (9d8d76f)

Open in CodSpeed

@astral-automations-bot
astral-automations-bot Bot force-pushed the zb/default-groups-on-workspace-20260914 branch from be8214f to 79e821e Compare September 15, 2026 22:47
@zaniebot zaniebot added risk:0 No meaningful change to product, state, release, or automation behavior. priority:4 Low: worthwhile tests, refactors, or maintenance with modest immediate benefit. size:1 Small: one localized behavior with straightforward tests or documentation checks. labels Sep 23, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal A refactor or improvement that is not user-facing priority:4 Low: worthwhile tests, refactors, or maintenance with modest immediate benefit. risk:0 No meaningful change to product, state, release, or automation behavior. size:1 Small: one localized behavior with straightforward tests or documentation checks.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant