Migrate to uv, fix Dependabot vulnerabilities, upgrade deps#176
Open
Migrate to uv, fix Dependabot vulnerabilities, upgrade deps#176
Conversation
Migrate project from poetry to uv (PEP 621 format). Add aiohttp>=3.13.3 and urllib3>=2.6.3 as direct dependencies to address Dependabot alerts. Export requirements.txt for continued Dependabot scanning.
Switch base image to astral/uv:python3.13-bookworm-slim, collapse to single stage, replace poetry install with uv sync. Update .dockerignore to include uv.lock instead of poetry.lock.
Replace poetry with uv in test workflow. Add sync-requirements job to build workflow for Dependabot compatibility. Pin all GitHub Actions to commit SHAs.
py-cord 2.7 requires a 'colors' key in role payload data. Add it to role_data in test helpers to fix test suite import failure.
Bump prometheus-client 0.16->0.24, flake8-bugbear 23.12->24.12, pep8-naming 0.13->0.15, pre-commit 3.8->4.5. No breaking changes for current usage patterns.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #176 +/- ##
=======================================
Coverage 61.74% 61.74%
=======================================
Files 50 50
Lines 2941 2941
=======================================
Hits 1816 1816
Misses 1125 1125 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Types of changes
What types of changes does your code introduce?
Put an
xin the boxes that apply.Proposed changes
astral/uv:python3.13-bookworm-slim, collapse to single build stage, replace poetry install withuv sync.colorsfield to role mock data for py-cord 2.7.Checklist
Put an
xin the boxes that apply.doc.
Additional context
All 227 tests pass. Docker base image builds successfully. Remaining outdated packages (pydantic v1, pytest, fastapi, hypercorn, ipython, flake8) are held back by tight upper bounds and would require separate migration efforts.