Skip to content

feat: support exclude-newer overrides - #3875

Merged
frostming merged 1 commit into
mainfrom
feat/exclude-newer-overrides
Sep 3, 2026
Merged

feat: support exclude-newer overrides#3875
frostming merged 1 commit into
mainfrom
feat/exclude-newer-overrides

Conversation

@frostming

Copy link
Copy Markdown
Collaborator

Pull Request Checklist

  • A news fragment is added in news/ describing what is new.
  • Test cases added for changed code.

Describe what you have changed in this PR.

Add package-specific exclude-newer overrides in pyproject.toml and the lock CLI. Overrides accept a date or duration, while false disables the global cutoff for a package.

Package names are normalized before matching. The overrides are applied by both the PDM and uv resolvers, with command-line values taking precedence over project configuration.

Closes #3809

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 814eb4ac5d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/pdm/resolver/uv.py
@codecov

codecov Bot commented Sep 3, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.62500% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.81%. Comparing base (4abfe39) to head (814eb4a).

Files with missing lines Patch % Lines
src/pdm/cli/commands/lock.py 82.35% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3875      +/-   ##
==========================================
+ Coverage   88.79%   88.81%   +0.02%     
==========================================
  Files         120      120              
  Lines       13330    13357      +27     
  Branches     2267     2271       +4     
==========================================
+ Hits        11836    11863      +27     
  Misses        931      931              
  Partials      563      563              
Flag Coverage Δ
unittests 88.70% <90.62%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@frostming
frostming merged commit f1bb362 into main Sep 3, 2026
25 checks passed
@frostming
frostming deleted the feat/exclude-newer-overrides branch September 3, 2026 10:41
@sneakers-the-rat

Copy link
Copy Markdown
Contributor

thank you!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow overrides to exclude-newer

2 participants