-
-
Notifications
You must be signed in to change notification settings - Fork 23
Fix code_quality workflow: update lockfile and improve validation #153
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
- Updated pytest-benchmark from v5.1.0 to v5.2.3 to match pyproject.toml - Removed unnecessary tomli dependency entries with impossible markers - Lockfile is now in sync with pyproject.toml requirements Co-authored-by: jacksonpradolima <[email protected]>
|
@copilot why not have a step before --check to update lock? it's safer |
- Add uv lock step before checking lockfile freshness - Check git diff to detect if lockfile needs updating - Provide clear error message and show diff when lockfile is out of sync - This is safer and more informative than just using uv lock --check Co-authored-by: jacksonpradolima <[email protected]>
Good suggestion! I've updated the workflow in commit 33dff77 to add a
This approach is safer and more informative than just using |
- Check lockfile first with uv lock --check (fast path) - Only regenerate lockfile if check fails (to show diff) - Provides helpful error message showing exact changes needed - More efficient while still being informative Co-authored-by: jacksonpradolima <[email protected]>
- Add 'set -e' to ensure script fails on any command error - Ensures uv lock failures are properly caught and reported Co-authored-by: jacksonpradolima <[email protected]>
|



The
code_quality.ymlworkflow was failing onuv lock --checkbecause the lockfile was out of sync withpyproject.toml.Changes
Lockfile Update
uv.lockto match current dependency specificationspytest-benchmark: 5.1.0 → 5.2.3 (matchespyproject.tomlpin)tomlientries with impossible version markersWorkflow Improvement
code_quality.ymlto be more informative and efficient:uv lock --checkfirst (fast path when lockfile is up-to-date)set -efor proper error handlingThe lockfile check now passes and
uv sync --frozenworks as expected. The improved workflow provides better developer experience by clearly showing what needs to be updated when the lockfile is out of sync.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.