From fe95ff5ca1aafc7f43687f00a05d5803d2e9abc7 Mon Sep 17 00:00:00 2001 From: Obeida Shamoun <2135622+oshmoun@users.noreply.github.com> Date: Thu, 6 Jul 2023 14:32:26 +0200 Subject: [PATCH] hooks: remove obsolete install_project_deps ternary --- tox_poetry_installer/hooks.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tox_poetry_installer/hooks.py b/tox_poetry_installer/hooks.py index f5cbdba..6aed0d9 100644 --- a/tox_poetry_installer/hooks.py +++ b/tox_poetry_installer/hooks.py @@ -140,19 +140,13 @@ def tox_on_install( f"Identified {len(env_deps)} environment dependencies to install to env" ) - install_project_deps = ( - tox_env.conf["install_project_deps"] - if tox_env.conf["install_project_deps"] is not None - else (not tox_env.conf["skip_install"] and not tox_env.core["no_package"]) - ) - # extras are not set in a testenv if skip_install=true try: extras = tox_env.conf["extras"] except KeyError: extras = [] - if install_project_deps: + if tox_env.conf["install_project_deps"]: project_deps = utilities.find_project_deps( packages, virtualenv, poetry, extras )