Skip to content

Instantly share code, notes, and snippets.

@eshaan7
Created April 3, 2021 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eshaan7/94e8ea35079395483006b85b94c75183 to your computer and use it in GitHub Desktop.
Save eshaan7/94e8ea35079395483006b85b94c75183 to your computer and use it in GitHub Desktop.
import pluggy
hookimpl = pluggy.HookimplMarker("myproject")
class PluginXYZ:
"""A 2nd hook implementation namespace.
"""
@hookimpl
def myhook(self, arg1, arg2):
print("inside PluginXYZ.myhook()")
return arg1 - arg2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment