Hi,
First of all, thanks a lot for writing, maintaining, and developing all the tools in the Python ecosystem! Apologies if this is not the place for such a question or if it has been discussed before.
In short, I have the following setup in lots of my Tox 3.x tox.ini files:
[defs]
pyfiles =
src/confget
src/some_other_tool_or_module
unit_tests
...
[testenv:pylint]
...
commands =
pylint -- {[defs]pyfiles}
So this works with Tox 3.x: it expands the variable, apparently replaces the newline characters with spaces or something like that, and then runs the command on all the files. The same tox.ini syntax with Tox 4.x leads to Tox passing pylint -- src/confget<newline> src/...</newline> unit_tests
to the shell, and so the shell treats those as three separate commands, which is not exactly the intent here
I mean, I understand why Tox 4.x would do that: after all, I did include some newline characters in the variable’s value, so it wants to reflect that in the command. Still, is there a way to achieve what I want in Tox 4.x syntax? I know I can specify all the files on a single line, but I kind of like the readability of the one-per-line format…
Thanks again, and keep up the great work!
G’luck,
Peter