Skip to content

Commit 78854d2

Browse files
committed
Apply ruff
1 parent 0556b30 commit 78854d2

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/semra/summarize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ def plot_distribution(
739739
import seaborn as sns
740740
from matplotlib import pyplot as plt
741741

742-
fig, ax = plt.subplots(figsize=(1 + len(self.distribution) * width_ratio, height))
742+
_fig, ax = plt.subplots(figsize=(1 + len(self.distribution) * width_ratio, height))
743743
sns.barplot(self.distribution, ax=ax)
744744

745745
for index, value in self.distribution.items():

tests/test_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,8 @@ def test_get_many_to_many(self) -> None:
385385

386386
def test_filter_confidence(self) -> None:
387387
"""Test filtering by confidence."""
388-
(a1, a2) = _get_references(2, prefix=PREFIX_A)
389-
(b1, b2) = _get_references(2, prefix=PREFIX_B)
388+
(a1, _a2) = _get_references(2, prefix=PREFIX_A)
389+
(b1, _b2) = _get_references(2, prefix=PREFIX_B)
390390
m1 = Mapping(
391391
subject=a1,
392392
predicate=DB_XREF,
@@ -406,7 +406,7 @@ def test_filter_subsets(self) -> None:
406406
"""Test filtering by subsets."""
407407
a1, a2 = _get_references(2, prefix=PREFIX_A)
408408
b1, b2 = _get_references(2, prefix=PREFIX_B)
409-
c1, c2 = _get_references(2, prefix=PREFIX_C)
409+
c1, _c2 = _get_references(2, prefix=PREFIX_C)
410410
ev = SimpleEvidence(confidence=0.95, mapping_set=MS)
411411
m1 = Mapping(subject=a1, predicate=EXACT_MATCH, object=b1, evidence=[ev])
412412
m2 = Mapping(subject=b1, predicate=EXACT_MATCH, object=a1, evidence=[ev])

0 commit comments

Comments
 (0)