Repository navigation
π fix(config): keep rewritten paths as operands - #4317
Merged
gaborbernat merged 5 commits intoOct 30, 2026
Merged
gaborbernat merged 5 commits into
gaborbernat merged 5 commits into
Conversation
rahuldevikar
force-pushed
the
radevika-microsoft-fix-args-are-paths-project-file-option
branch
from
October 30, 2026 16:22
179477d to
e29a93a
Compare
rahuldevikar
force-pushed
the
radevika-microsoft-fix-args-are-paths-project-file-option
branch
from
October 30, 2026 16:28
e29a93a to
6e8651f
Compare
rahuldevikar
force-pushed
the
radevika-microsoft-fix-args-are-paths-project-file-option
branch
from
October 30, 2026 17:49
e8035ff to
8b229a9
Compare
A positional argument naming an existing file was rewritten relative to change_dir, and the result could start with '-', turning a path into a command option. Prefix such rewrites with './'.
Keep pos_args within the complexity limit after rebasing onto main.
rahuldevikar
force-pushed
the
radevika-microsoft-fix-args-are-paths-project-file-option
branch
from
October 30, 2026 17:52
8b229a9 to
d18a6b6
Compare
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.
With
args_are_pathsenabled, a forwarded file path can become a command option when tox rewrites it relative tochange_dirand the new name starts with-(#4218). tox now prefixes that rewritten name with the platform's current-directory marker when the original argument did not start with-, so the command receives a path.Positional argument conversion makes this adjustment before INI or TOML commands receive the arguments.
Fixes #4218.