Skip to content

Conversation

@bigcat88
Copy link
Contributor

@bigcat88 bigcat88 commented Aug 6, 2025

Resolves #267

Documentation for this feature is here:

https://github.com/astral-sh/uv-pre-commit

As far as I tested in the fork, this is exactly what will conveniently allow you to have and maintain lock files.

Exporting dependencies to pylock.toml is done for the future, because although pip supports creating this file, it apparently cannot install from there at the moment.

Also uv and pip create a file pylock.toml with very different content - from the comparison, I liked the file created by uv more - because pip creates a currently unusable file tied to a specific version of Python, while uv creates something closer to the poetry format.

From what I tested, these hooks are automatically called only if there were updates in pyproject.toml - and they update uv.lock & pylock.toml

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Aug 6, 2025
@codecov
Copy link

codecov bot commented Aug 6, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

@@           Coverage Diff           @@
##             main     #308   +/-   ##
=======================================
  Coverage   47.91%   47.91%           
=======================================
  Files          30       30           
  Lines        3068     3068           
=======================================
  Hits         1470     1470           
  Misses       1598     1598           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dosubot dosubot bot added the enhancement New feature or request label Aug 6, 2025
@bigcat88 bigcat88 merged commit 42833cc into main Aug 24, 2025
8 of 9 checks passed
@bigcat88 bigcat88 deleted the feat/lock-files branch August 24, 2025 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider maintaining a lock file

2 participants