Skip to content

Commit d80e85b

Browse files
[pre-commit.ci] pre-commit autoupdate (#439)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black-pre-commit-mirror: 25.12.0 → 26.1.0](psf/black-pre-commit-mirror@25.12.0...26.1.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent f7be92b commit d80e85b

5 files changed

Lines changed: 13 additions & 25 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repos:
99
- id: check-yaml
1010
- id: check-added-large-files
1111
- repo: https://github.com/psf/black-pre-commit-mirror
12-
rev: 25.12.0
12+
rev: 26.1.0
1313
hooks:
1414
- id: black
1515
- repo: https://github.com/pre-commit/pre-commit-hooks

graphein/grn/parse_regnetwork.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,8 @@ def _download_RegNetwork(
4646
# Ping server to check if file is available
4747
ping_result = ping("regnetworkweb.org")
4848
if not ping_result:
49-
log.warning(
50-
"RegNetwork is not available. Please check your internet \
51-
connection or verify at: http://www.regnetworkweb.org"
52-
)
49+
log.warning("RegNetwork is not available. Please check your internet \
50+
connection or verify at: http://www.regnetworkweb.org")
5351

5452
mouse_url = "https://regnetworkweb.org/download/mouse.zip"
5553

graphein/protein/features/nodes/dssp.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,8 @@ def add_dssp_feature(G: nx.Graph, feature: str) -> nx.Graph:
244244
245245
G.nodes[n][feature] = dssp_df.loc[residue, feature]
246246
"""
247-
raise NameError(
248-
f"DSSP residue features ({feature}) \
249-
cannot be added to atom granularity graph"
250-
)
247+
raise NameError(f"DSSP residue features ({feature}) \
248+
cannot be added to atom granularity graph")
251249

252250
else:
253251
nx.set_node_attributes(G, dict(dssp_df[feature]), feature)

graphein/protein/graphs.py

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -914,10 +914,8 @@ def _mp_graph_constructor(
914914
:return: Protein structure graph or ``None`` if an error is encountered.
915915
:rtype: Union[nx.Graph, None]
916916
"""
917-
log.info(
918-
f"Constructing graph for: {args[0]}. Chain selection: {args[1]}. \
919-
Model index: {args[2]}"
920-
)
917+
log.info(f"Constructing graph for: {args[0]}. Chain selection: {args[1]}. \
918+
Model index: {args[2]}")
921919
func = partial(construct_graph, config=config)
922920
try:
923921
if source == "pdb_code":
@@ -936,10 +934,8 @@ def _mp_graph_constructor(
936934
)
937935

938936
except Exception as ex:
939-
log.info(
940-
f"Graph construction error (PDB={args[0]})! \
941-
{traceback.format_exc()}"
942-
)
937+
log.info(f"Graph construction error (PDB={args[0]})! \
938+
{traceback.format_exc()}")
943939
log.info(ex)
944940
return None
945941

@@ -1232,10 +1228,8 @@ def compute_secondary_structure_graph(
12321228
ss_list[u], ss_list[v], kind=d["kind"], source=f"{u}_{v}"
12331229
)
12341230
except KeyError as e:
1235-
log.debug(
1236-
f"Edge {u}-{v} not added to secondary structure graph. \
1237-
Reason: {e} not in graph"
1238-
)
1231+
log.debug(f"Edge {u}-{v} not added to secondary structure graph. \
1232+
Reason: {e} not in graph")
12391233

12401234
# Remove self-loops if necessary.
12411235
# Checks for equality between nodes in a given edge.

graphein/protein/utils.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,8 @@ def download_pdb(
238238
new_pdb, out_dir, format=format, overwrite=overwrite
239239
)
240240
except KeyError:
241-
log.warning(
242-
f"PDB {pdb_code} not found. Possibly too large; large \
243-
structures are only provided as mmCIF files."
244-
)
241+
log.warning(f"PDB {pdb_code} not found. Possibly too large; large \
242+
structures are only provided as mmCIF files.")
245243
return
246244

247245
# Check if PDB already exists

0 commit comments

Comments
 (0)