mirror of
https://github.com/enpaul/tox-poetry-installer.git
synced 2025-01-15 08:43:29 +00:00
hooks: only check for require_poetry in env config
This commit is contained in:
parent
fe95ff5ca1
commit
9efcea762e
@ -93,8 +93,9 @@ def tox_on_install(
|
|||||||
try:
|
try:
|
||||||
poetry = utilities.check_preconditions(tox_env)
|
poetry = utilities.check_preconditions(tox_env)
|
||||||
except exceptions.SkipEnvironment as err:
|
except exceptions.SkipEnvironment as err:
|
||||||
if isinstance(err, exceptions.PoetryNotInstalledError) and (
|
if (
|
||||||
tox_env.core["require_poetry"] or tox_env.conf["require_poetry"]
|
isinstance(err, exceptions.PoetryNotInstalledError)
|
||||||
|
and tox_env.conf["require_poetry"]
|
||||||
):
|
):
|
||||||
logger.error(str(err))
|
logger.error(str(err))
|
||||||
raise err
|
raise err
|
||||||
|
Loading…
Reference in New Issue
Block a user