From 216ee8b0957838f131160c5b0d02aff6ebb6f2e4 Mon Sep 17 00:00:00 2001 From: Ethan Paul <24588726+enpaul@users.noreply.github.com> Date: Thu, 26 Nov 2020 13:43:33 -0500 Subject: [PATCH] Fix exception when not installing project dependencies Fix bug in precommit args --- .pre-commit-config.yaml | 2 +- tox_poetry_installer/hooks.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9637aed..0990f85 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -44,5 +44,5 @@ repos: hooks: - id: reorder-python-imports args: - - "--unclassifiable-application-module tox_poetry_installer" + - "--unclassifiable-application-module=tox_poetry_installer" language: system diff --git a/tox_poetry_installer/hooks.py b/tox_poetry_installer/hooks.py index 34645cc..b95a312 100644 --- a/tox_poetry_installer/hooks.py +++ b/tox_poetry_installer/hooks.py @@ -108,6 +108,7 @@ def tox_testenv_install_deps(venv: ToxVirtualEnv, action: ToxAction) -> Optional venv, poetry, package_map ) else: + project_deps = [] reporter.verbosity1( f"{constants.REPORTER_PREFIX} Skipping installation of project dependencies, env does not install project package" )