Skip to content

Commit 73d5856

Browse files
committed
fix ruff
1 parent e0c088a commit 73d5856

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/openclatura/reconstruction_audit.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,9 @@ def _unsaturation_locant_pair(parts: AssemblyParts, locant: str) -> tuple[str, s
195195
candidates = []
196196
if locant.isdigit():
197197
candidates.append(tuple(sorted((locant, str(int(locant) + 1)))))
198-
candidates.extend(pair for pair in parts.parent_bond_orders_by_locants if pair[0] == locant or pair[1] == locant)
198+
candidates.extend(
199+
pair for pair in parts.parent_bond_orders_by_locants if pair[0] == locant or pair[1] == locant
200+
)
199201
for pair in candidates:
200202
if pair in parts.parent_bond_orders_by_locants:
201203
return pair
@@ -228,7 +230,9 @@ def _check_attachment_locants(mol: Molecule, parts: AssemblyParts, atom_to_locan
228230
if neighbor in parts.parent_atom_ids and neighbor not in item.atom_ids:
229231
actual.append(atom_to_locant.get(neighbor, "?"))
230232
if actual and sorted(actual) != sorted(str(locant) for locant in item.locants):
231-
issues.append(f"substituent {item.name!r} claims locants {sorted(item.locants)} but attaches at {sorted(actual)}")
233+
issues.append(
234+
f"substituent {item.name!r} claims locants {sorted(item.locants)} but attaches at {sorted(actual)}"
235+
)
232236
return issues
233237

234238

0 commit comments

Comments
 (0)