Skip to content

tox4: turn non whitelisted warning into error #1127

@obestwalter

Description

@obestwalter

At the moment we show this warning if we call to a tool from the parent env:

WARNING: test command found but not installed in testenv
  cmd: /home/ob/.virtualenvs/play/bin/pytest
  env: /home/ob/do/play/.tox/python
Maybe you forgot to specify a dependency? See also the whitelist_externals envconfig setting.

I am working on documentation improvements for #461 and my current feeling is that we should start throwing an error if somebody does not whitelist an external command from tox 4 on. From 3.7 on we should show an enhanced warning that will announced that the warning will be an error from tox 4 on - like:

WARNING: test command found but not installed in testenv
  cmd: /home/ob/.virtualenvs/play/bin/pytest
  env: /home/ob/do/play/.tox/python
Maybe you forgot to specify a dependency? See also the whitelist_externals envconfig setting.

DEPRECATION WARNING: this will be an error in tox 4 and above

Metadata

Metadata

Assignees

Labels

area:configurationfeature:changesomething exists already but should behave differentlyhelp:wantedIssues that have been acknowledged, a solution determined and a PR might likely be accepted.tox4

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions