code: def find_hook(hook_name, hooks_dir='hooks'):
      
      logger.debug('hooks_dir is {}'.format(os.path.abspath(hooks_dir)))
  
      if not os.path.isdir(hooks_dir):
          logger.debug('No hooks/ dir in template_dir')
          return None
  
      for hook_file in os.listdir(hooks_dir):
          if valid_hook(hook_file, hook_name):
              return os.path.abspath(os.path.join(hooks_dir, hook_file))
  
      return None
docs: Return a dict of all hook scripts provided.
  
      Must be called with the project template as the current working directory.
      Dict's key will be the hook/script's name, without extension, while values
      will be the absolute path to the script. Missing scripts will not be
      included in the returned dict.
  
      :param hook_name: The hook to find
      :param hooks_dir: The hook directory in the template
      :return: The absolute path to the hook script or None