Skip to content

Commit ee05f93

Browse files
committed
lint
1 parent 0010b1c commit ee05f93

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

easybuild/tools/hooks.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ def _bash_breakpoint(*args, **kwargs):
230230
os.environ['PS1'] = old_ps1
231231
os.environ['PROMPT_COMMAND'] = old_promptcmd
232232

233+
233234
def _python_breakpoint(*args, **kwargs):
234235
"""Simple breakpoint hook that opens a Python shell."""
235236
print('Python breakpoint reached, entering pdb shell...')
@@ -240,11 +241,13 @@ def _python_breakpoint(*args, **kwargs):
240241
import pdb
241242
pdb.set_trace()
242243

244+
243245
breakpoint_types = {
244246
'bash': _bash_breakpoint,
245247
'python': _python_breakpoint,
246248
}
247249

250+
248251
def run_hook(label, hooks, pre_step_hook=False, post_step_hook=False, args=None, kwargs=None, msg=None):
249252
"""
250253
Run hook with specified label and return result of calling the hook or None.

0 commit comments

Comments
 (0)