Repository navigation
Support closed numeric ranges in tox env lists - #55
Open
mayankdhingra02 wants to merge 1 commit into
Open
mayankdhingra02 wants to merge 1 commit into
mayankdhingra02 wants to merge 1 commit into
Conversation
Expand numeric alternatives within tox brace groups and use the same update logic as explicit alternatives. Preserve grouped factors when the Python version group includes ranges.
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.
Tox reads
env_list = py3{8-14}as seven environments. check-python-versions read it as Python 3.8 only, which caused a mismatch with equivalent project metadata. Running--add 3.15also lost six existing environments.The checker now expands closed numeric ranges inside brace groups in either direction. Updating a range uses the same version selection as comma-separated alternatives and retains grouped factors where the existing updater supports them.
I compared actual tox 4.25.0 and 4.67.13 output for ascending, descending, and mixed ranges. After the fix,
--add 3.15preserves all seven environments and addspy315. The full tox matrix passed on macOS with CPython 3.10–3.15 and PyPy 3.11, including 100% coverage and lint, type, and packaging checks.Fixes #49.