docs: def install(force=False):
      """Install git hooks."""
      ret, git_dir, _ = run("git rev-parse --show-toplevel")
      if ret != 0:
          click.echo(
              "ERROR: Please run from within a GIT repository.",
              file=sys.stderr)
          raise click.Abort
      git_dir = git_dir[0]
  
      hooks_dir = os.path.join(git_dir, HOOK_PATH)
  
      for hook in HOOKS:
          hook_path = os.path.join(hooks_dir, hook)
          if os.path.exists(hook_path):
              if not force:
                  click.echo(
                      "Hook already exists. Skipping {0}".format(hook_path),
                      file=sys.stderr)
                  continue
              else:
                  os.unlink(hook_path)
  
          source = os.path.join(sys.prefix, "bin", "kwalitee-" + hook)
          os.symlink(os.path.normpath(source), hook_path)
      return True