-
Notifications
You must be signed in to change notification settings - Fork 7
fix(code-style): use uv sync if lock file is present #1088
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
base: main
Are you sure you want to change the base?
Changes from all commits
ea66251
000816d
2b15273
0b28571
b641a5c
4e45d4c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -250,7 +250,11 @@ runs: | |||||
| if [[ "${BUILD_BACKEND}" == 'poetry' ]]; then | ||||||
| poetry install | ||||||
| elif [[ "${BUILD_BACKEND}" == 'uv' ]]; then | ||||||
| uv pip install . | ||||||
| if [ -f "uv.lock" ]; then | ||||||
| uv sync | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| else | ||||||
| uv pip install . | ||||||
| fi | ||||||
|
Comment on lines
+253
to
+257
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jorgepiloto I was wondering if we could extend this to Or we could address those in a separate PR if that is what you prefer. |
||||||
| else | ||||||
| python -m pip install . | ||||||
| fi | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Use uv sync if lock file is present |
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.
If we're using the lock file we need to not regenerate it when we 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.
Yeah and we might not want to use dev dependencies so I'd add
--no-devtoo