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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user