Migrate to uv, ruff, and pyproject.toml#663
Open
rtibblesbot wants to merge 5 commits intolearningequality:mainfrom
Open
Migrate to uv, ruff, and pyproject.toml#663rtibblesbot wants to merge 5 commits intolearningequality:mainfrom
rtibblesbot wants to merge 5 commits intolearningequality:mainfrom
Conversation
8011237 to
fcf69c5
Compare
rtibbles
reviewed
Apr 6, 2026
Member
rtibbles
left a comment
There was a problem hiding this comment.
I think this could do with being rebased onto latest main, and including uv specific updates in AGENTS.md and CLAUDE.md
fcf69c5 to
765eb3c
Compare
Author
|
Rebased onto latest main and added uv-specific workflow documentation to both AGENTS.md and CLAUDE.md (commit 765eb3c). |
1a0ca45 to
40a534e
Compare
40a534e to
3efff15
Compare
Replace setup.py, setup.cfg, MANIFEST.in, pytest.ini, and tox.ini with a single pyproject.toml. Switch version management to setuptools-scm with Python 3.9+ target. Add uv.lock for reproducible dependency resolution. Replace black/flake8/reorder-python-imports with ruff in pre-commit config. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Migrate GitHub Actions test workflow from tox to uv run pytest. Replace pre-commit/action with prek for linting. Use uv build for publishing. Switch dependabot to uv ecosystem. Update ReadTheDocs config to install via uv. Add fetch-depth: 0 to checkout steps for setuptools-scm. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Run ruff format and isort across the codebase. Also fix bugs surfaced by static analysis: comparison-as-assignment in chefs.py (deprecated settings migration was silently broken), redundant USEPROXY double-assignment in config.py, and import ordering in __init__.py and conftest.py. Wrap fixture downloads in try/except so transient network failures result in skipped tests rather than CI errors. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Rewrite Makefile targets to use uv run for test, coverage, and docs. Replace black/flake8 references with ruff. Rewrite CONTRIBUTING.md with uv-based development setup. Update AGENTS.md and CLAUDE.md to reference uv/prek instead of pip/pre-commit. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
dd17095 to
b504482
Compare
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.
Summary
Migrate ricecooker from pip/tox/setup.py/black/flake8 to uv/ruff/pyproject.toml, matching the approach established in the Kolibri ecosystem (learningequality/kolibri#14457).
pyproject.tomlreplacessetup.py,setup.cfg,pytest.ini, andMANIFEST.inas the single source of project metadata, dependencies, build config, and tool settings__version__+ bumpversion to setuptools-scm withimportlib.metadatatox.iniremoved; CI workflows useuv rundirectly viaastral-sh/setup-uv@v7uv-locksync hookexclude-newercooldown configured in[tool.uv]for supply chain safety==used instead of=forSETTINGSassignment inchefs.py(deprecated setting migration was silently broken), and simplifyUSEPROXYdouble-assignment inconfig.pyReferences
Closes #662
Reference implementation: learningequality/kolibri#14457
Reviewer guidance
pyproject.toml— verify dependency completeness against the oldsetup.pyinstall_requiresandextras_require, check setuptools-scm and PEP 735 dependency group configpythontest.yml,pre-commit.yml,python-publish.yml) — the tox-to-uv migration andastral-sh/setup-uv@v7setupricecooker/__init__.py:6-12— version now usesimportlib.metadata.version()instead of a hardcoded stringricecooker/chefs.py— fixed==→=bug in deprecated setting migration (silent no-op before this PR)To test locally:
uv sync --group dev && uv run pytestAI usage
Implemented by Claude Code following a plan derived from the Kolibri uv migration (learningequality/kolibri#14457). Changes were reviewed against the issue acceptance criteria.
@rtibblesbot's comments are generated by an LLM, and should be evaluated accordingly
How was this generated?