Commit 80b4574
authored
Addresses the TODO items in `pet-uv` for workspace member/exclude
validation.
## Changes
- Parse `[tool.uv.workspace]` `members` and `exclude` fields instead of
using `IgnoredAny`
- Add `is_workspace_member()` with glob pattern matching (using
`require_literal_separator` so `*` doesn't cross directory boundaries)
- Walk up parent directories via `find_workspace_for_project()` to
discover workspace roots
- Stop at the first workspace found — if the project isn't a member of
it, it's not part of any workspace
- Add `glob` dependency to `pet-uv`
- 9 new tests covering member matching, exclusion, implicit members,
parent discovery, and deserialization
Fixes #290
cc @zsol — would appreciate your input since you authored the original
`pet-uv` workspace support in #263.
1 parent b8bff92 commit 80b4574
3 files changed
+345
-44
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
0 commit comments