refactor: migrate setup.py to pyproject.toml and adopt uv/ruff#62
Merged
refactor: migrate setup.py to pyproject.toml and adopt uv/ruff#62
Conversation
… ruff Consolidate package configuration from setup.py, setup.cfg, and MANIFEST.in into pyproject.toml. Replace black, flake8, isort, and pyupgrade with ruff for linting and formatting. Bump minimum Python version to 3.10 and remove typing_extensions dependency. Co-Authored-By: Claude <noreply@anthropic.com>
Add stacklevel=2 to warnings.warn (B028) and rename ambiguous variable `l` to `exp` (E741). Co-Authored-By: Claude <noreply@anthropic.com>
Bump pre-commit hook versions, add check-toml/check-merge-conflict/ detect-private-key/uv-lock/check-github-workflows/pyproject-fmt hooks. Reformat pyproject.toml via pyproject-fmt. Co-Authored-By: Claude <noreply@anthropic.com>
Update test matrix to 3.10/3.11/3.12, deploy workflow to Python 3.12, and CI branch targets to develop. Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Replace pip install with uv sync/uv build in testing and deploy workflows. Remove pip cache step (uv handles caching natively). Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <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
setup.py,setup.cfg, andMANIFEST.inintopyproject.tomltyping_extensionsdependencyTest plan
uv sync --extra dev && uv run pytest -v tests/passes locallyuv run ruff check hsnf/ tests/reports no errorsuv build[Claude Code] Generated with Claude Code