DEV Community

Discussion on: ✈ Kedro Hooks Intro - creating the kedro-preflight hook

Collapse
 
limdauto profile image
Lim H.

Thank you for the article. Shouldn't the hook registration for debug_hook be hooks = [debug_hook()] though?

Collapse
 
waylonwalker profile image
Waylon Walker

I completely missed your comment, there are different ways to setup hooks in the back end. Some need an instance of the hook class and some are fine with just a class or module itself.

You can find an example of each in this article.