Skip to content

chore: Add dependency cooldown to uv#97

Merged
Amund211 merged 1 commit intomainfrom
copilot/add-exclude-newer-to-uv
Dec 19, 2025
Merged

chore: Add dependency cooldown to uv#97
Amund211 merged 1 commit intomainfrom
copilot/add-exclude-newer-to-uv

Conversation

Copy link
Contributor

Copilot AI commented Dec 18, 2025

Adds a 1-week cooldown period for new package versions to give time for issues to surface before adoption.

Changes

  • Added exclude-newer = "1 week" to [tool.uv] in pyproject.toml

This leverages uv's new support for relative date values in the exclude-newer configuration (ref: astral-sh/uv#16814). Packages uploaded within the past week will be excluded from dependency resolution, providing a buffer against newly introduced bugs or breaking changes.

[tool.uv]
exclude-newer = "1 week"
Original prompt

Add exclude newer to uv. Set it to one week.
Make the commit message: "chore: Add dependency cooldown to uv"
Make the commit body "Support for relative dates in 'exclude-newer' was recently added. Ref: astral-sh/uv#16814"
Format the commit body to the appropriate line length and use backticks instead of single ticks around 'exclude-newer'.

[tool.uv]
exclude-newer = "1 week"

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Add exclude newer functionality to uv chore: Add dependency cooldown to uv Dec 18, 2025
Copilot AI requested a review from Amund211 December 18, 2025 19:27
Support for relative dates in `exclude-newer` was recently added.
Ref: astral-sh/uv#16814
@Amund211 Amund211 force-pushed the copilot/add-exclude-newer-to-uv branch from 9397d79 to 885a879 Compare December 18, 2025 21:30
@Amund211 Amund211 marked this pull request as ready for review December 19, 2025 16:33
Copilot AI review requested due to automatic review settings December 19, 2025 16:33
@Amund211 Amund211 merged commit 3636bf1 into main Dec 19, 2025
12 checks passed
@Amund211 Amund211 deleted the copilot/add-exclude-newer-to-uv branch December 19, 2025 16:35
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a 1-week cooldown period for new package versions by configuring uv's exclude-newer setting. This provides a buffer against newly introduced bugs or breaking changes in dependencies by excluding packages uploaded within the past week from dependency resolution.

Key Changes

  • Added exclude-newer = "1 week" configuration to the [tool.uv] section in pyproject.toml

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

3 participants