Skip to content

The agent that grows with you

refactor(config): drop the unused config_exists import from hermes_cli.config

kshitijk4poor5300dced68cc
diff --git a/hermes_cli/config.py b/hermes_cli/config.py
index dec6b7da017..c44e94e5cb9 100644
--- a/hermes_cli/config.py
+++ b/hermes_cli/config.py
@@ -48,7 +48,7 @@ from hermes_constants import (
from hermes_constants import get_hermes_home, get_process_hermes_home
from utils import atomic_replace, fast_safe_load, file_signature, mkstemp_beside
from hermes_cli.config_backend import (
- config_exists, config_version, read_config_doc, supports_file_tooling, write_config_document)
+ config_version, read_config_doc, supports_file_tooling, write_config_document)
from hermes_cli.config_read_errors import (
_CONFIG_PARSE_FAILURES, _FIX_PERMS, _FIX_YAML, FailedConfigRead, _backups_dir_display,
_refuse_failed_read, _refuse_overwrite, _warn_config_parse_failure, _yaml_error_details,
diff --git a/tests/hermes_cli/test_config_backend.py b/tests/hermes_cli/test_config_backend.py
index b26cf2a0359..74ca5fe41ec 100644
--- a/tests/hermes_cli/test_config_backend.py
+++ b/tests/hermes_cli/test_config_backend.py
@@ -256,7 +256,6 @@ class TestReaderGate:
bad.write_text(f"def a(self, home):\n {body}\n", encoding="utf-8")
with patch.object(guard, "ROOT", tmp_path):
assert len(guard.scan_file(bad)) == 1
- assert "pm" in guard.DEFAULT_TREES
def test_backend_calls_are_clean(self, tmp_path):
guard = self._guard()