test(persistence/sqlite): spell the schema-statement match with re.DOTALL

The repository's ruff rule FURB167 refuses the re.S alias in the resumable_subagents schema case.
This commit is contained in:
yoniebans
2026-11-14 21:03:54 +01:00
parent 57d2c7f1ca
commit fbf4aeaf98

View File

@@ -19,7 +19,8 @@ def _columns(conn: sqlite3.Connection) -> list[tuple]:
def _main_columns() -> list[tuple]:
statement = re.search(r"CREATE TABLE IF NOT EXISTS resumable_subagents \(.*?\);", hermes_state_common.SCHEMA_SQL, re.S)
statement = re.search(r"CREATE TABLE IF NOT EXISTS resumable_subagents \(.*?\);", hermes_state_common.SCHEMA_SQL,
re.DOTALL)
assert statement is not None
with sqlite3.connect(":memory:") as conn:
conn.execute(statement.group(0))