Add testing against the Python 3.13 release#366
Open
miketheman wants to merge 12 commits intomainfrom
Open
Conversation
Add testing against the Python 3.13 beta release. - **.github/workflows/python.yml** - Add `3.13` to the `python-version` matrix. - Add `allow-prereleases: true` to the `with` section of `actions/setup-python@v5`. - **pyproject.toml** - Add `3.13` to the `classifiers` section under `Programming Language :: Python`. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/miketheman/pytest-socket?shareId=XXXX-XXXX-XXXX-XXXX).
Owner
Author
|
|
for more information, see https://pre-commit.ci
Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: GitHub <noreply@github.com>
|
Code Climate has analyzed commit dbab20f and detected 0 issues on this pull request. View more on Code Climate. |
There was a problem hiding this comment.
PR Overview
This PR adds testing for the Python 3.13 beta release by updating configuration files and adjusting type annotations in testing utilities. The key changes include:
- Adding Python 3.13 support in the GitHub Actions workflow.
- Updating the Python classifiers and minimum version in pyproject.toml.
- Adjusting type annotations in pytest_socket.py to use built-in generic types.
Reviewed Changes
| File | Description |
|---|---|
| pyproject.toml | Added Python 3.13 classifier and bumped the minimum Python version to 3.9. |
| .pre-commit-config.yaml | Updated pyupgrade arguments to require Python 3.9+. |
| .github/workflows/python.yml | Removed Python 3.8 and added Python 3.13 to the CI testing matrix. |
| pytest_socket.py | Converted type annotations from typing generics to built-in generics for consistency with Python 3.9+. |
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (3)
pyproject.toml:33
- Ensure that upgrading the minimum Python version from 3.8 to 3.9 is intentional and aligns with your support strategy for older versions of Python.
python = "^3.9"
.github/workflows/python.yml:22
- Verify that removing Python 3.8 from the CI matrix is consistent with the intended project compatibility requirements.
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
pytest_socket.py:77
- Confirm that transitioning to built-in generic types (list[str], dict[str, set[str]]) is compatible with your development and documentation tools, given the minimum version bump.
allow_hosts: typing.Union[str, list[str], None]
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.
Add testing against the Python 3.13 beta release.
.github/workflows/python.yml
3.13to thepython-versionmatrix.pyproject.toml
3.13to theclassifierssection underProgramming Language :: Python.