Skip to content

Commit

Permalink
0.1.1: fix after linting
Browse files Browse the repository at this point in the history
  • Loading branch information
richrobe committed Dec 6, 2021
1 parent a988b56 commit fb7de53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hpc_helper/_hpc_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}...")
Expand Down

0 comments on commit fb7de53

Please sign in to comment.