Skip to content

The agent that grows with you

ci: fix B004 linter rule

Maciej Lisiewskid7cfd4af950c
diff --git a/hermes_cli/plugin_host_wire.py b/hermes_cli/plugin_host_wire.py
index 7d06d0d2130..3cab022cdee 100644
--- a/hermes_cli/plugin_host_wire.py
+++ b/hermes_cli/plugin_host_wire.py
@@ -152,7 +152,7 @@ def decode(value: Any, resolve: Optional[Callable[[dict], Any]] = None) -> Any:
def is_async_callable(fn: Any) -> bool:
import inspect
target = getattr(fn, "__func__", fn)
- return inspect.iscoroutinefunction(target) or inspect.iscoroutinefunction(getattr(fn, "__call__", None))
+ return inspect.iscoroutinefunction(target) or inspect.iscoroutinefunction(getattr(fn, "__call__", None)) # noqa: B004 -- __call__ feeds iscoroutinefunction (async instances), not a callability test
def describe_signature(fn: Any) -> Optional[list]:
diff --git a/ruff.strict.toml b/ruff.strict.toml
index 3a326266f90..1534a9e0f1a 100644
--- a/ruff.strict.toml
+++ b/ruff.strict.toml
@@ -65,7 +65,7 @@ select = [
# "BLE001",
"B002",
"B003",
- # "B004",
+ "B004",
"B005",
"B006",
# "B008",