chore: migrate to Python 3.13, uv, ruff; replace pipenv and black/flake8/isort#1
Open
adrian-afergon wants to merge 1 commit into
Open
chore: migrate to Python 3.13, uv, ruff; replace pipenv and black/flake8/isort#1adrian-afergon wants to merge 1 commit into
adrian-afergon wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Pull request overview
This PR modernizes the project’s Python tooling by moving configuration into pyproject.toml, bumping the supported Python version to 3.13, and replacing the Pipenv + black/flake8/isort workflow with uv + ruff + mypy driven via make.
Changes:
- Introduce
pyproject.toml(Python >= 3.13) and migrate tool configs (pytest, ruff, mypy, coverage) fromsetup.cfg. - Replace Pipenv-based Makefile workflows with
uv-basedsetup/tests/lint/formattargets. - Remove legacy
Pipfile,Pipfile.lock, andsetup.cfg; adjust README + gitignore for new tooling/caches.
Reviewed changes
Copilot reviewed 6 out of 8 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| setup.cfg | Removed legacy flake8/isort/mypy/pytest/black/coverage configuration in favor of pyproject.toml. |
| README.md | Updates setup instructions to Python 3.13 + uv (but needs minor corrections for pyenv usage). |
| pyproject.toml | New centralized project + tooling configuration (dependency groups + pytest/ruff/mypy/coverage). |
| Pipfile.lock | Removed Pipenv lockfile as part of the uv migration. |
| Pipfile | Removed Pipenv manifest as part of the uv migration. |
| Makefile | Replaces Pipenv-based setup/tests/lint with uv + ruff + mypy targets. |
| .python-version | Adds a pinned Python version for local tooling (pyenv). |
| .gitignore | Stops ignoring .python-version and adds ruff cache ignore. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+1
to
+4
| .PHONY: setup tests lint clean | ||
|
|
||
| .PHONY: help | ||
| help: ## Show this help | ||
| @grep -E '^\S+:.*?## .*$$' $(firstword $(MAKEFILE_LIST)) | \ | ||
| awk 'BEGIN {FS = ":.*?## "}; {printf "%-30s %s\n", $$1, $$2}' | ||
| setup: | ||
| uv sync |
Comment on lines
+6
to
+7
| tests: | ||
| uv run pytest --verbose |
Comment on lines
+9
to
+12
| lint: | ||
| uv run ruff check ./src | ||
| uv run ruff format --check ./src | ||
| uv run mypy |
Comment on lines
+14
to
+15
| format: | ||
| uv run ruff format ./src |
Comment on lines
+17
to
+22
| clean: | ||
| find . -type f -name "*.pyc" -delete | ||
| find . -type d -name "__pycache__" -delete | ||
| find . -type d -name ".pytest_cache" -exec rm -rf {} + | ||
| find . -type d -name ".mypy_cache" -exec rm -rf {} + | ||
| find . -type d -name ".hypothesis" -exec rm -rf {} + |
|
|
||
| ```bash | ||
| pyenv install 3.10.9 | ||
| pyenv install 3.13 |
|
|
||
| ```bash | ||
| pyenv local 3.10.9 | ||
| pyenv local 3.13 |
| @@ -0,0 +1 @@ | |||
| 3.13 | |||
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
Notes
Verification