Skip to content

Commit

Permalink
Run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
gagb committed Dec 12, 2024
1 parent 9d04710 commit 28af7ad
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/markitdown/_markitdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,9 @@ def convert_github_issue(
self, issue_url: str, github_token: str
) -> DocumentConverterResult:
if not IS_GITHUB_ISSUE_CAPABLE:
raise ImportError("PyGithub is not installed. Please install it to use this feature.")
raise ImportError(
"PyGithub is not installed. Please install it to use this feature."
)

# Parse the issue URL
parsed_url = urlparse(issue_url)
Expand All @@ -1135,7 +1137,9 @@ def convert_github_issue(
markdown_content += f"**Comments:**\n"

for comment in issue.get_comments():
markdown_content += f"- {comment.user.login} ({comment.created_at}): {comment.body}\n"
markdown_content += (
f"- {comment.user.login} ({comment.created_at}): {comment.body}\n"
)

return DocumentConverterResult(
title=issue.title,
Expand Down

0 comments on commit 28af7ad

Please sign in to comment.