Skip to content

Commit

Permalink
Adds check for no_install flag to check for reusing existing venv (wn…
Browse files Browse the repository at this point in the history
…trblm#394)

reuse_existing is now true if we are not installing pacakges.
  • Loading branch information
gwynforthewyn committed May 7, 2021
1 parent b529d7f commit 6969cda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nox/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ def _create_venv(self) -> None:
return

reuse_existing = (
self.func.reuse_venv or self.global_config.reuse_existing_virtualenvs
self.func.reuse_venv or self.global_config.reuse_existing_virtualenvs or self.global_config.no_install
)

if backend is None or backend == "virtualenv":
Expand Down

0 comments on commit 6969cda

Please sign in to comment.