Repository navigation
Unify override and exclude code - #20689
Merged
Merged
Conversation
konstin
force-pushed
the
konsti/unify-dependency-modifiers
branch
from
July 25, 2026 20:27
779ba35 to
2f55dcb
Compare
konstin
force-pushed
the
konsti/unify-dependency-modifiers
branch
from
July 25, 2026 20:39
2f55dcb to
3644bd8
Compare
konstin
force-pushed
the
konsti/unify-dependency-modifiers
branch
from
July 25, 2026 21:13
3644bd8 to
a46c026
Compare
konstin
force-pushed
the
konsti/unify-dependency-modifiers
branch
from
July 25, 2026 21:45
a46c026 to
49e77d7
Compare
konstin
force-pushed
the
konsti/unify-dependency-modifiers
branch
from
July 25, 2026 22:02
49e77d7 to
fb2dfc1
Compare
konstin
force-pushed
the
konsti/unify-dependency-modifiers
branch
from
August 20, 2026 10:10
fb2dfc1 to
637e6aa
Compare
konstin
force-pushed
the
konsti/unify-dependency-modifiers
branch
from
September 8, 2026 13:13
b27cea4 to
f25dcc1
Compare
uv test inventory changesThis PR no longer changes the tests when compared with the |
Merging this PR will not alter performance
Comparing Footnotes
|
konstin
force-pushed
the
konsti/unify-dependency-modifiers
branch
from
September 22, 2026 10:54
543390e to
9b47cfe
Compare
Reuse the existing override and exclusion wire types, with generic requirement mapping, while keeping the unified runtime collection and index. Keep lock manifests sorted and deduplicated so an unchanged configuration with repeated or unordered modifiers passes `uv lock --check --refresh`. Ignore scoped overrides in constraint and exclusion scripts before validating them. Cover both cases with integration tests.
Keep the public modifier methods and their private lookup index together so the implementation can be read in one place. Remove the child module and its extra visibility declarations.
Store overrides and exclusions together in their runtime scopes. Reconstruct canonical entries for lockfiles and tool receipts, and compare modifiers independently of input grouping, ordering, or duplication. Keep distinct override origins for source annotations and retain independent precedence for explicitly empty override and exclusion scopes.
Inline single-use insertion methods and expose temporary serialization entries directly. Cover duplicate inputs and empty scopes in existing integration tests instead of separate fixtures.
Lockfile normalization retains package names, so transform override values in their existing scopes. Keep source annotations and empty scopes intact, and use a single iterator when applying an override.
Look up modifiers directly from their input lists, keeping scoped precedence and source annotations intact. Sort and deduplicate only for lockfile comparison and serialization.
Append global overrides directly to the input list and keep scoped validation at construction. Retain the existing set-based lockfile serializer interface.
Group runtime dependency modifiers while retaining their global and package-scoped indexes. Keep configuration inputs, tool receipts, and lockfile formats unchanged.
Overrides and exclusions are applied through DependencyModifiers. Remove unused entry points and restrict the helpers to their remaining callers. Restore the original pip compile fixtures and output snapshots.
konstin
force-pushed
the
konsti/unify-dependency-modifiers
branch
from
September 29, 2026 08:22
6576e21 to
51ed22d
Compare
Record override and exclusion lookups through dependency modifiers, and keep normalized lockfile comparisons when validating a lock.
konstin
force-pushed
the
konsti/unify-dependency-modifiers
branch
from
September 29, 2026 09:49
51ed22d to
5cc6736
Compare
This branch was previously deployed
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.
We always apply overrides and excludes together, there's no need to always pass around two fields and apply both in sequence.
Being unified into one type, we can attach future dependency modifiers to that too.