-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pre-commit: autorun uv lock
if --check
fails
#6711
Conversation
uv lock
if --check fails
uv lock
if --check
fails
Is this to fix the failed CI, why they are failed now? Is this one covered by #6699? @danielhollas |
CI fails for different reasons, probably because #6712 |
Yes, #6699 should cover this. For the failing CI, please update your uv version and then try to update the lock. |
The latest uv version now is
I assume the readthedocs build config should also sync the uv version. |
You'll need to update the uv version in the RTD config. We'll need to
figure out how to manage the uv version better, since the lockfile is
clearly still in flux even in patch versions.
…On Thu, Jan 16, 2025, 10:55 Jusong Yu ***@***.***> wrote:
The latest uv version now is 0.5.20, I update and rerun uv lock --upgrade.
The CI tests are fine now but the readthedocs build failed on uv sync
--extra docs --extra tests --extra rest --extra atomic_tools with:
error: Failed to parse `uv.lock`
Caused by: TOML parse error at line 25, column 1
|
25 | [[package]]
| ^^^^^^^^^^^
missing field `version`
—
Reply to this email directly, view it on GitHub
<#6711 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACIY64OK6RHAWVGXMHA7CLT2K6FZTAVCNFSM6AAAAABVJD6HGKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKOJVGIYDIMRRGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Thanks for quick reply @danielhollas |
Go for it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -189,8 +189,8 @@ repos: | |||
|
|||
- id: check-uv-lock | |||
name: Check uv lockfile up to date | |||
# NOTE: This will not automatically update the lockfile | |||
entry: uv lock --check | |||
entry: bash -c 'uv lock --check || uv lock' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure it this works correctly, because we need to fail the pre-commit check if the lockfile is updated, but based on my limited testing uv lock
returns 0 regardless if the lockfile was updated or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess with --check
return zero only if lockfile is already updated.
I ran a few manual tests, for me it works.
@danielhollas now that the minimum version is set, |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6711 +/- ##
=======================================
Coverage 78.00% 78.00%
=======================================
Files 563 563
Lines 41766 41766
=======================================
Hits 32574 32574
Misses 9192 9192 ☔ View full report in Codecov by Sentry. |
Well, the bug that I reported yesterday that was blocking us is already fixed. 😄 So let's wait for next release, which will most likely happen sometimes next week, they release very often. |
solution #6699 is preferred. |
why not?