Skip to content

Commit

Permalink
hooks: only check for require_poetry in env config
Browse files Browse the repository at this point in the history
  • Loading branch information
oshmoun committed Jul 6, 2023
1 parent fe95ff5 commit 9efcea7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tox_poetry_installer/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ def tox_on_install(
try:
poetry = utilities.check_preconditions(tox_env)
except exceptions.SkipEnvironment as err:
if isinstance(err, exceptions.PoetryNotInstalledError) and (
tox_env.core["require_poetry"] or tox_env.conf["require_poetry"]
if (
isinstance(err, exceptions.PoetryNotInstalledError)
and tox_env.conf["require_poetry"]
):
logger.error(str(err))
raise err
Expand Down

0 comments on commit 9efcea7

Please sign in to comment.