From fb7de538e844a0f11f2a04a27cc81f59f9e1e069 Mon Sep 17 00:00:00 2001 From: Robert Richer Date: Mon, 6 Dec 2021 16:53:56 +0100 Subject: [PATCH] 0.1.1: fix after linting --- hpc_helper/_hpc_helper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hpc_helper/_hpc_helper.py b/hpc_helper/_hpc_helper.py index 8bb6ad8..36b80a2 100644 --- a/hpc_helper/_hpc_helper.py +++ b/hpc_helper/_hpc_helper.py @@ -30,9 +30,9 @@ def check_interpreter(deploy_type: str): """ executable = sys.executable - if (deploy_type == "hpc" or deploy_type == "remote") and "woody" not in executable: + if deploy_type in ("hpc", "remote") and "woody" not in executable: raise AttributeError(f"'deploy_type' is '{deploy_type}', but '{deploy_type}' is not set as Python interpreter!") - if (deploy_type == "local" or deploy_type == "develop") and "woody" in executable: + if deploy_type in ("local", "develop") and "woody" in executable: raise AttributeError(f"'deploy_type' is '{deploy_type}', but 'hpc' is set as Python interpreter!") print(f"Running on {sys.executable}...")