Fix exception when not installing project dependencies

Fix bug in precommit args
This commit is contained in:
Ethan Paul 2020-11-26 13:43:33 -05:00
parent e96f4fb5e5
commit 216ee8b095
No known key found for this signature in database
GPG Key ID: C5F5542B54A4D9C6
2 changed files with 2 additions and 1 deletions

View File

@ -44,5 +44,5 @@ repos:
hooks: hooks:
- id: reorder-python-imports - id: reorder-python-imports
args: args:
- "--unclassifiable-application-module tox_poetry_installer" - "--unclassifiable-application-module=tox_poetry_installer"
language: system language: system

View File

@ -108,6 +108,7 @@ def tox_testenv_install_deps(venv: ToxVirtualEnv, action: ToxAction) -> Optional
venv, poetry, package_map venv, poetry, package_map
) )
else: else:
project_deps = []
reporter.verbosity1( reporter.verbosity1(
f"{constants.REPORTER_PREFIX} Skipping installation of project dependencies, env does not install project package" f"{constants.REPORTER_PREFIX} Skipping installation of project dependencies, env does not install project package"
) )