From 082e169ca6676b61935604756c0c7c63e19eeb4a Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Wed, 31 May 2023 15:21:30 +0100 Subject: scripts: Fold long lines. * scripts/index-genenetwork (write_document, index_query): Fold long lines. --- scripts/index-genenetwork | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'scripts/index-genenetwork') diff --git a/scripts/index-genenetwork b/scripts/index-genenetwork index f7d4415..fe2420c 100755 --- a/scripts/index-genenetwork +++ b/scripts/index-genenetwork @@ -152,7 +152,8 @@ def locked_xapian_writable_database(path: pathlib.Path) -> xapian.WritableDataba # pylint: disable=invalid-name -def write_document(db: xapian.WritableDatabase, identifier: str, doctype: str, doc: xapian.Document) -> None: +def write_document(db: xapian.WritableDatabase, identifier: str, + doctype: str, doc: xapian.Document) -> None: """Write document into xapian database.""" # We use the XT and Q prefixes to indicate the type and idterm # respectively. @@ -302,7 +303,8 @@ def worker_queue(number_of_workers: int = os.cpu_count() or 1) -> Generator: process.join() -def index_query(index_function: Callable, query: SQLQuery, xapian_build_directory: pathlib.Path, sql_uri: str, start: int = 0) -> None: +def index_query(index_function: Callable, query: SQLQuery, + xapian_build_directory: pathlib.Path, sql_uri: str, start: int = 0) -> None: """Run SQL query, and index its results for Xapian.""" i = start try: -- cgit v1.2.3