Skip to content

Commit f50de49

Browse files
committed
Formate code
1 parent b28b9aa commit f50de49

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

examples/kge-predict-transe-pyg-train.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@
411411
" print(f\"Epoch: {epoch:03d}, Loss: {loss:.4f}\")\n",
412412
" if epoch % 75 == 0:\n",
413413
" rank, hits = test(val_tensor_data)\n",
414-
" print(f\"Epoch: {epoch:03d}, Val Mean Rank: {rank:.2f}, \" f\"Val Hits@10: {hits:.4f}\")\n",
414+
" print(f\"Epoch: {epoch:03d}, Val Mean Rank: {rank:.2f}, Val Hits@10: {hits:.4f}\")\n",
415415
"\n",
416416
" torch.save(model, f\"./model_{epoch_count}.pt\")\n",
417417
"\n",

graphdatascience/graph/graph_entity_ops_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def _process_result(
158158
duplicate_properties = set(db_node_properties).intersection(set(node_properties))
159159
if duplicate_properties:
160160
raise ValueError(
161-
f"Duplicate property keys '{duplicate_properties}' in db_node_properties and " f"node_properties."
161+
f"Duplicate property keys '{duplicate_properties}' in db_node_properties and node_properties."
162162
)
163163

164164
unique_node_ids = result["nodeId"].drop_duplicates().tolist()

graphdatascience/query_runner/cypher_graph_constructor.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,8 @@ def _should_warn_about_arrow_missing(self) -> bool:
110110
should_warn = license == "Licensed"
111111
except Exception as e:
112112
# It's not a user's concern whether Arrow is set up or not in AuraDS.
113-
if (
114-
"There is no procedure with the name `gds.debug.sysInfo` "
115-
"registered for this database instance." in str(e)
113+
if "There is no procedure with the name `gds.debug.sysInfo` registered for this database instance." in str(
114+
e
116115
):
117116
should_warn = False
118117
else:

graphdatascience/retry_utils/retry_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def log_it(retry_state: RetryCallState) -> None:
1414
if retry_state.attempt_number > 1: # only log on actual retry
1515
logger.log(
1616
log_level,
17-
f"Retry of '{fn_name}', " f"attempt: {retry_state.attempt_number}",
17+
f"Retry of '{fn_name}', attempt: {retry_state.attempt_number}",
1818
)
1919

2020
return log_it

0 commit comments

Comments
 (0)