fix(lint): hoist hooks_cli_mod import to top of test_hooks_cli (E402)

The alias was placed below an explanatory comment block introduced by
#1305, which trips ruff E402 (module-level import not at top of file).
Moved next to the existing 'from mempalace.hooks_cli import (...)' line.

CI lint went red on develop after #1305 merged with the failing check;
this re-greens it so subsequent PRs do not inherit the failure.
This commit is contained in:
Igor Lins e Silva
2026-05-06 01:57:44 -03:00
parent 67cda9d455
commit f854da779f
+1 -3
View File
@@ -8,6 +8,7 @@ from unittest.mock import MagicMock, patch
import pytest
import mempalace.hooks_cli as hooks_cli_mod
from mempalace.hooks_cli import (
SAVE_INTERVAL,
_count_human_messages,
@@ -969,9 +970,6 @@ def test_stop_hook_rejects_injected_stop_hook_active(tmp_path):
# STATE_DIR.mkdir() on its own.
import mempalace.hooks_cli as hooks_cli_mod
def _redirect_palace_root(monkeypatch, tmp_path):
"""Point PALACE_ROOT and STATE_DIR at a tmp location that does NOT exist."""
fake_root = tmp_path / "absent-mempalace"