mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 13:47:19 +08:00
chore(lint): Apply comprehensive linting and formatting fixes (#10287)
Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
@@ -92,7 +92,6 @@ class GithubIssueHandler(IssueHandlerInterface):
|
||||
Returns:
|
||||
List of Github issues.
|
||||
"""
|
||||
|
||||
if not issue_numbers:
|
||||
raise ValueError('Unspecified issue number')
|
||||
|
||||
|
||||
@@ -86,7 +86,6 @@ class GitlabIssueHandler(IssueHandlerInterface):
|
||||
Returns:
|
||||
List of Gitlab issues.
|
||||
"""
|
||||
|
||||
if not issue_numbers:
|
||||
raise ValueError('Unspecified issue number')
|
||||
|
||||
|
||||
@@ -70,7 +70,6 @@ class IssueResolver:
|
||||
comment_id: Optional ID of a specific comment to focus on.
|
||||
base_domain: The base domain for the git server.
|
||||
"""
|
||||
|
||||
parts = args.selected_repo.rsplit('/', 1)
|
||||
if len(parts) < 2:
|
||||
raise ValueError('Invalid repository format. Expected owner/repo')
|
||||
@@ -540,7 +539,6 @@ class IssueResolver:
|
||||
Args:
|
||||
reset_logger: Whether to reset the logger for multiprocessing.
|
||||
"""
|
||||
|
||||
issue = self.extract_issue()
|
||||
|
||||
if self.comment_id is not None:
|
||||
|
||||
@@ -16,8 +16,7 @@ from openhands.integrations.utils import validate_provider_token
|
||||
|
||||
|
||||
async def identify_token(token: str, base_domain: str | None) -> ProviderType:
|
||||
"""
|
||||
Identifies whether a token belongs to GitHub, GitLab, or Bitbucket.
|
||||
"""Identifies whether a token belongs to GitHub, GitLab, or Bitbucket.
|
||||
Parameters:
|
||||
token (str): The personal access token to check.
|
||||
base_domain (str): Custom base domain for provider (e.g GitHub Enterprise)
|
||||
|
||||
Reference in New Issue
Block a user