implement tox_add_option hook

This commit is contained in:
Obeida Shamoun
2023-05-20 00:03:44 +02:00
parent 0693ce4706
commit c81215bc3b
4 changed files with 26 additions and 6 deletions

View File

@@ -37,7 +37,7 @@ def check_preconditions(venv: ToxVirtualEnv) -> "_poetry.Poetry":
if isinstance(venv, PackageToxEnv):
raise exceptions.SkipEnvironment(f"Skipping Tox provisioning env '{venv.name}'")
if venv.conf["require_poetry"]:
if venv.options.require_poetry:
logger.warning(
"DEPRECATION: The '--require-poetry' runtime option is deprecated and will be "
"removed in version 1.0.0. Please update test environments that require Poetry to "