Skip to content

chore: migrate from Poetry to uv and adopt Ruff#599

Open
lucemia wants to merge 3 commits intomainfrom
chore/migrate-to-uv-and-ruff
Open

chore: migrate from Poetry to uv and adopt Ruff#599
lucemia wants to merge 3 commits intomainfrom
chore/migrate-to-uv-and-ruff

Conversation

@lucemia
Copy link
Copy Markdown
Contributor

@lucemia lucemia commented Dec 15, 2025

Summary

This PR migrates the project from Poetry to uv and replaces the existing lint stack with Ruff.

Changes

  • Package Management: Poetry → uv

    • Converted pyproject.toml to PEP 621 format
    • Replaced poetry.lock with uv.lock
    • Updated CI to use uv sync and uv run
  • Linting & Formatting: black/isort/flake8 → Ruff

    • Consolidated all linting into Ruff
    • Updated CI lint commands

Testing

Please verify CI passes and the project builds correctly.

- Convert pyproject.toml from Poetry to PEP 621 format
- Replace poetry.lock with uv.lock
- Update GitHub Actions to use uv and ruff
- Apply ruff fixes to codebase
- Use snapshot == True/False instead of assert snapshot/assert not snapshot
- Skip webpmux tests when webpmux is not installed
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Dec 15, 2025

Codecov Report

❌ Patch coverage is 83.33333% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 93.70%. Comparing base (3907566) to head (8e40bc3).
⚠️ Report is 102 commits behind head on main.

Files with missing lines Patch % Lines
src/ffmpeg_media_type/utils/hotfix_webp.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #599      +/-   ##
==========================================
+ Coverage   93.68%   93.70%   +0.02%     
==========================================
  Files          11       11              
  Lines         269      270       +1     
==========================================
+ Hits          252      253       +1     
  Misses         17       17              
Flag Coverage Δ
3.10 93.70% <83.33%> (+0.02%) ⬆️
3.11 93.70% <83.33%> (+0.02%) ⬆️
3.12 93.70% <83.33%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

The 'order' parameter was removed in newer versions of mkdocstrings-python
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants