Update test management with tox and supported Python versions #26
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.
Description
The existing code uses language features from Python 3.10 and above.
The existing Python 3.8 tests were not consistently triggered in the test suite, hence they intermittently passed or were skipped.
Python 3.8 and Python 3.9 are End of Life. See https://devguide.python.org/versions/ for dates.
Additionally, the syntax changes with 3.10 means that modern linting fails the tests.
We need to support from Python
3.10up to3.14/3.14twhich are the current stable production versions.This PR adds
toxpackage, which automates running existing tests in multiple Python versions.This is done via
uv run tox.Additional changes include updating Github Actions workflows to also check
uv run ruff check .anduv run mypy src/toon_formatType of Change
Related Issues
Related to #23
Changes Made
toxuvcommands (rather than pip)