And if not throw an error. See #1085 for a such case.
It's surprising that inheritance is the default behavior. Since the dependencies are already specified in the pyproject.toml file, I don't actually know in which cases we don't want to use this workaround mentioned in #1085:
[testenv:.package]
# no additional dependencies besides PEP 517
deps =
Maybe this should be the default behavior?
The main problem with making it the default is that it would have to be a special case now, and can throw off people expecting us to follow the usual rules. Also not clear how this should interact with our more advanced features such as factor dependencies 馃And yes inheritence is the default behavior is because that's something people are using to not need to specify test dependencies explicitly.
Maybe tox should not use inheritance for isolated builds in the first place? There are probably many problems with this suggestion too.
Again the main argument against is that now we have separate rules for just one type of environment. Forking the logic and introducing new env types feels at the moment the greater evil, but I'm open to suggestions. Again we need to think about the entire system as a whole not just for one edge case. I think a better error message would solve a lot of grievances, hence the target of this issue.
I see 馃憤