Skip to content

feat: add PEP 751 version provider with pylock.toml support#1896

Draft
josix wants to merge 2 commits intocommitizen-tools:masterfrom
josix:feat/support-for-pep-751
Draft

feat: add PEP 751 version provider with pylock.toml support#1896
josix wants to merge 2 commits intocommitizen-tools:masterfrom
josix:feat/support-for-pep-751

Conversation

@josix
Copy link
Contributor

@josix josix commented Mar 14, 2026

Description

Introduce Pep751Provider that extends Pep621Provider to update version strings in pylock*.toml lock files alongside pyproject.toml.

Checklist

Was generative AI tooling used to co-author this PR?

Code Changes

  • Add test cases to all the changes you introduce
  • Run uv run poe all locally to ensure this change passes linter check and tests
  • Manually test the changes:
    • Verify the feature/bug fix works as expected in real-world scenarios
    • Test edge cases and error conditions
    • Ensure backward compatibility is maintained
    • Document any manual testing steps performed
  • Update the documentation for the changes

Documentation Changes

  • Run uv run poe doc locally to ensure the documentation pages renders correctly
  • Check and fix any broken links (internal or external)

Expected Behavior

Steps to Test This Pull Request

Additional Context

Fix #1397

@codecov
Copy link

codecov bot commented Mar 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.00%. Comparing base (33223b4) to head (7616956).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1896      +/-   ##
==========================================
+ Coverage   97.99%   98.00%   +0.01%     
==========================================
  Files          60       61       +1     
  Lines        2689     2711      +22     
==========================================
+ Hits         2635     2657      +22     
  Misses         54       54              

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

@josix josix force-pushed the feat/support-for-pep-751 branch 3 times, most recently from 04442af to 5a8b592 Compare March 14, 2026 08:23
Introduce Pep751Provider that extends Pep621Provider to update
version strings in pylock*.toml lock files alongside pyproject.toml.
@josix josix force-pushed the feat/support-for-pep-751 branch from 5a8b592 to df340d2 Compare March 14, 2026 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for PEP 751 lockfiles

1 participant