-
Notifications
You must be signed in to change notification settings - Fork 1.3k
chore(precommit): add uv-sync hook #278
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
Conversation
| hooks: | ||
| - id: uv-export | ||
| args: ["--frozen", "--no-hashes", "--no-emit-project"] | ||
| - id: uv-sync |
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.
while you are at it, can you update the args above to add --output-file=requirements.txt
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.
Done 👍
ashwinb
left a comment
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.
Thanks. Could you rebase and resubmit the change? Some of the files you changed ended up moving as part of #279
ghost
left a comment
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.
Duplicado de #
Signed-off-by: Tomas Coufal <[email protected]>
Signed-off-by: Tomas Coufal <[email protected]>
Signed-off-by: Tomas Coufal <[email protected]>
a426944 to
ebf0429
Compare
Signed-off-by: Tomas Coufal [email protected]
When standing up a dev setup, I've discovered a mismatch between
pyproject.tomlanduv.lock- call touv sync --extra devresults in diff onuv.lock.It seems like during the last version bump, the
uv.lockwas not regenerated. This discrepancy can be mitigated by adding auv-synchook to the precommit (fcf8893). The same hook is already present in thellama-stackrepo so I guess it would be worth adding it here as well.After adding the hook, I've just ran
precommit run -aand discovered some discrepancies here and there, so I've fixed those in this PR as well (let me know if I should move them to a separate PR).This repo is also missing a precommit CI workflow, should I add that as well? Or would you prefer a separate PR?