Skip to content

Commit 01817eb

Browse files
committed
Lint and better comments
1 parent ddc0e26 commit 01817eb

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

easybuild/cli/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
except ImportError:
66
def eb():
77
"""Placeholder function to inform the user that `click` is required."""
8-
print("Using `eb2` requires `click` to be installed. Either use `eb` or install `click` with `pip install click`.")
9-
print("`eb2` also uses `rich` and `rich_click` as optional dependencies for enhanced CLI experience.")
10-
print("Exiting...")
8+
print('Using `eb2` requires `click` to be installed.')
9+
print('Either use `eb` or install `click` with `pip install click`.')
10+
print('`eb2` also uses `rich` and `rich_click` as optional dependencies for enhanced CLI experience.')
11+
print('Exiting...')
1112
sys.exit(0)
1213
else:
1314
try:

easybuild/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -809,6 +809,7 @@ def main_with_hooks(args=None):
809809
except EasyBuildError as err:
810810
print_error(err.msg, exit_code=err.exit_code)
811811
else:
812+
# Avoid running double initialization in `main` afterward if `prepare_main` succeeded
812813
args = None
813814

814815
hooks = load_hooks(eb_go.options.hooks)

0 commit comments

Comments
 (0)