Replies: 1 comment 2 replies
-
We don't support this behaviour currently and I don't think we plan to support it. This would make the configuration be even more complicated than it is today and I'm personally not comfortable with it. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Lets say my config is
I want to only allow posargs to be passed when running
tox -e test1
ortox -e test2
but any posargs passed to tox directly shouldn't be forwarded.That is, these work
tox -- -m cats
shouldn't error, or be ignored since I don't want pytest to be involved twice with the same args.Please note my main point is that I want the commands in
[testenv:testN]
to be reused inside[testenv]
without allowing substitution AND not duplicating command in[testenv:testN]
.I.e. I don't think doing this is a good solution since if I alter
[testenv:test1]
I have to manually alter[testenv]
TL;DR I want to be able to Substitute for values from other sections with positional arguments and not allow the top level command to forward the arguments.
Maybe if I could store
[testenv:test1]
's command in a variable then reuse that in[testenv]
but it's unclear how to do this in the docs.Beta Was this translation helpful? Give feedback.
All reactions