Migrate Python tooling from pip-tools/tox to uv#351
Merged
Conversation
Replaces pip-compile/tox-based dev tooling with uv: dev-tool groups move from project.optional-dependencies to PEP 735 dependency-groups, tox.ini and requirements.txt are removed in favor of uv.lock, CI workflows install uv (astral-sh/setup-uv) and run `uv sync --group X` + `uv run <tool>` instead of `pip install tox` + `tox -e X`, and the README bootstrap/IDE setup instructions now point at `uv sync` and `.venv`. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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
tests,linting,type_check,spell_check,coverage,formatting) fromproject.optional-dependenciesto PEP 735[dependency-groups]; also movespackaging(build/twine) there since it's maintainer tooling, not a user-facing extra.devgroup aggregates everything +pre-commit, replacing the removedpip-toolsdependency.tox.iniandrequirements.txt; adduv.lock(generated viauv lock). Set[tool.uv] default-groups = []so isolated CI jobs (uv sync --group X) don't implicitly pull in the wholedevgroup..github/workflows/*.ymlto installuvviaastral-sh/setup-uv@v9.0.0and runuv sync --group X+uv run <tool>instead ofpip install tox+tox -e X(also drops the separateactions/setup-pythonstep, sincesetup-uvpins the interpreter).uv sync --group dev, and point PyCharm/VS Code interpreter instructions at.venvinstead of.tox/dev.Test plan
uv lock/uv sync --group devsucceeduv run pytestpasseslinting(pylint 10/10),type_check(mypy strict, clean),spell_check(codespell, clean),coverage(100%, report generates),formatting(black/isort clean),packaging(build + twine check pass)pre-commithooks run clean on the commit🤖 Generated with Claude Code