The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(website-policy): make the salvaged test collect and pass blocking ruff
Teknium67491b50f7e5
diff --git a/tests/tools/test_website_policy_cache_scope.py b/tests/tools/test_website_policy_cache_scope.pyindex e9b7769126a..a78d24ff9f2 100644--- a/tests/tools/test_website_policy_cache_scope.py+++ b/tests/tools/test_website_policy_cache_scope.py@@ -6,9 +6,9 @@ from contextlib import contextmanagerfrom pathlib import Pathimport pytest-import yaml-import tools.website_policy as website_policy+import hermes_yaml as yaml+from tools import website_policyfrom hermes_constants import reset_hermes_home_override, set_hermes_home_overridediff --git a/tools/website_policy.py b/tools/website_policy.pyindex f0c3acd657b..d2c24b20668 100644--- a/tools/website_policy.py+++ b/tools/website_policy.py@@ -30,7 +30,7 @@ _cached_policy_path: Optional[str] = None_cached_policy_time: float = 0.0-def _fresh_cached_policy(resolved_path: str, now: float) -> Optional[Dict[str, Any]]:+def _fresh_cached_policy(resolved_path: str, now: float) -> Optional[dict[str, Any]]:"""Return the cached policy only when it belongs to this config path and is still within TTL."""with _cache_lock:if (