chore(lint): Apply comprehensive linting and formatting fixes (#10287)

Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
Xingyao Wang
2025-08-13 15:13:19 -04:00
committed by GitHub
parent e39bf80239
commit c2f46200c0
164 changed files with 526 additions and 1023 deletions

View File

@@ -92,7 +92,6 @@ class GithubIssueHandler(IssueHandlerInterface):
Returns:
List of Github issues.
"""
if not issue_numbers:
raise ValueError('Unspecified issue number')

View File

@@ -86,7 +86,6 @@ class GitlabIssueHandler(IssueHandlerInterface):
Returns:
List of Gitlab issues.
"""
if not issue_numbers:
raise ValueError('Unspecified issue number')

View File

@@ -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:

View File

@@ -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)