lints fixed

This commit is contained in:
levxn
2026-03-18 22:18:16 +05:30
parent 0cef0e6990
commit 96609386a3
2 changed files with 6 additions and 8 deletions
+4 -2
View File
@@ -527,8 +527,10 @@ class EventLoopNode(NodeProtocol):
if ctx.default_skill_batch_nudge:
from framework.skills.defaults import is_batch_scenario as _is_batch
_input_text = (ctx.goal_context or "") + " " + " ".join(
str(v) for v in ctx.input_data.values() if v
_input_text = (
(ctx.goal_context or "")
+ " "
+ " ".join(str(v) for v in ctx.input_data.values() if v)
)
if _is_batch(_input_text):
system_prompt = f"{system_prompt}\n\n{ctx.default_skill_batch_nudge}"
+2 -6
View File
@@ -232,9 +232,7 @@ class TestConfigOverrideSubstitution:
def test_context_preservation_override_threshold(self):
config = SkillsConfig.from_agent_vars(
default_skills={
"hive.context-preservation": {"warn_at_usage_ratio": 0.4}
}
default_skills={"hive.context-preservation": {"warn_at_usage_ratio": 0.4}}
)
manager = DefaultSkillManager(config)
manager.load()
@@ -301,9 +299,7 @@ class TestContextWarnRatio:
def test_override_ratio(self):
config = SkillsConfig.from_agent_vars(
default_skills={
"hive.context-preservation": {"warn_at_usage_ratio": 0.3}
}
default_skills={"hive.context-preservation": {"warn_at_usage_ratio": 0.3}}
)
manager = DefaultSkillManager(config)
manager.load()