Skip to content

Commit abb8b9a

Browse files
style: Apply ruff formatting fixes
Co-authored-by: openhands <openhands@all-hands.dev>
1 parent 56011ba commit abb8b9a

2 files changed

Lines changed: 15 additions & 9 deletions

File tree

openhands-agent-server/openhands/agent_server/skills_service.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import shutil
2121
import subprocess
2222
import tempfile
23-
import warnings
2423
from dataclasses import dataclass
2524
from pathlib import Path
2625
from typing import TYPE_CHECKING
@@ -295,7 +294,7 @@ def load_all_skills(
295294
org_name: str | None = None,
296295
sandbox_exposed_urls: list[ExposedUrlData] | None = None,
297296
marketplace_path: str | None = DEFAULT_MARKETPLACE_PATH,
298-
registered_marketplaces: list["MarketplaceRegistration"] | None = None,
297+
registered_marketplaces: list[MarketplaceRegistration] | None = None,
299298
) -> SkillLoadResult:
300299
"""Load and merge skills from all configured sources.
301300
@@ -390,7 +389,7 @@ def load_all_skills(
390389

391390

392391
def _load_marketplace_skills(
393-
registrations: list["MarketplaceRegistration"],
392+
registrations: list[MarketplaceRegistration],
394393
) -> list[Skill]:
395394
"""Load skills from registered marketplaces with auto_load='all'.
396395
@@ -403,7 +402,11 @@ def _load_marketplace_skills(
403402
Returns:
404403
List of skills loaded from auto-load marketplaces.
405404
"""
406-
from openhands.sdk.plugin import MarketplaceRegistry, Plugin, fetch_plugin_with_resolution
405+
from openhands.sdk.plugin import (
406+
MarketplaceRegistry,
407+
Plugin,
408+
fetch_plugin_with_resolution,
409+
)
407410

408411
all_skills: list[Skill] = []
409412

@@ -422,7 +425,9 @@ def _load_marketplace_skills(
422425
for plugin_entry in marketplace.plugins:
423426
try:
424427
# Resolve and fetch the plugin
425-
source, ref, subpath = marketplace.resolve_plugin_source(plugin_entry)
428+
source, ref, subpath = marketplace.resolve_plugin_source(
429+
plugin_entry
430+
)
426431
path, resolved_ref = fetch_plugin_with_resolution(
427432
source=source,
428433
ref=ref,
@@ -444,9 +449,7 @@ def _load_marketplace_skills(
444449
)
445450

446451
except Exception as e:
447-
logger.warning(
448-
f"Failed to load marketplace '{reg.name}': {e}"
449-
)
452+
logger.warning(f"Failed to load marketplace '{reg.name}': {e}")
450453

451454
return all_skills
452455

openhands-sdk/openhands/sdk/conversation/impl/local_conversation.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,10 @@ def _ensure_plugins_loaded(self) -> None:
367367
repo_path=subpath,
368368
)
369369
plugins_to_load.append(
370-
(plugin_source, f"marketplace:{reg.name}/{plugin_entry.name}")
370+
(
371+
plugin_source,
372+
f"marketplace:{reg.name}/{plugin_entry.name}",
373+
)
371374
)
372375
except Exception as e:
373376
logger.warning(

0 commit comments

Comments
 (0)