Skip to content

Commit

Permalink
hooks: remove obsolete install_project_deps ternary
Browse files Browse the repository at this point in the history
  • Loading branch information
oshmoun committed Jul 6, 2023
1 parent 6991f29 commit fe95ff5
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tox_poetry_installer/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit fe95ff5

Please sign in to comment.