Repository navigation
feat!: discover uv workspaces and deptry projects through the pyproject module - #127
Merged
Merged
Conversation
danielgafni
force-pushed
the
feat/pyproject-consumers
branch
2 times, most recently
from
October 23, 2026 12:46
029492c to
13d29fa
Compare
…ct module uv and deptry now take their projects and workspaces from the `pyproject` module instead of walking the tree themselves. uv: - Workspaces are `pyproject` workspaces with the `uv.lock` marker. Each `UvWorkspaceSource.source` is the workspace's scoped load (members plus their path dependencies, nothing else), not the whole tree, so editing an unrelated project no longer invalidates its builds. - `audit` mounts the new `manifests` directory and no longer takes `ws`. deptry: - Projects come from `pyproject`, and each check scans the project's `files`: its tree less nested projects. That replaces the hardcoded `**/sdk` and `**/clients` excludes, which also skipped any user package with those names. - Dagger-generated projects (`[tool.dagger] generated`) are skipped. - `check` no longer takes `ws`. pyproject: - New `files(ws)`: the files a project owns. - New `generated` field from `[tool.dagger] generated`. ruff keeps its single whole-tree run: ruff resolves the nearest config per file itself, and splitting it per project would cut off configs that `extend` a parent. BREAKING CHANGE: `UvWorkspaceSource.audit` and `DeptryProject.check` no longer take a `ws` argument.
main carries the fix for the generator's staleness check.
danielgafni
force-pushed
the
feat/pyproject-consumers
branch
from
October 23, 2026 13:21
ad839da to
a32da96
Compare
On beta.20, python-sdk@main's generator still binds the workspace's own clients by Git URL when the workspace is loaded from Git (as Dagger Cloud checks load it), so python-sdk/generate/stale fails in CI: the engine renders those refs as <repo>#<sha>:<path>, which the SDK's same-repo check doesn't recognise. Generation output is unchanged locally.
danielgafni
force-pushed
the
feat/pyproject-consumers
branch
from
October 23, 2026 13:21
a32da96 to
34d9eec
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.