Skip to content

Commit 183c2e3

Browse files
committed
style: apply ruff-format from pre-commit hooks
1 parent 91edee5 commit 183c2e3

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

malariagen_data/anopheles.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1788,9 +1788,9 @@ def plot_haplotype_network(
17881788
# charts
17891789
for i, (v, c) in enumerate(color_discrete_map_prepped.items()):
17901790
node_style[f"pie-{i + 1}-background-color"] = c
1791-
node_style[f"pie-{i + 1}-background-size"] = (
1792-
f"mapData({v}, 0, 100, 0, 100)"
1793-
)
1791+
node_style[
1792+
f"pie-{i + 1}-background-size"
1793+
] = f"mapData({v}, 0, 100, 0, 100)"
17941794
node_stylesheet = {
17951795
"selector": "node",
17961796
"style": node_style,

tests/anoph/test_vcf_exporter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ def test_vcf_exporter(fixture, api: VcfExporter, tmp_path):
114114
for line in data_lines:
115115
fields = line.split("\t")
116116
ref, alt = fields[3], fields[4]
117-
assert "b'" not in ref and "b'" not in alt, (
118-
f"byte-string repr in REF/ALT: REF={ref!r} ALT={alt!r}"
119-
)
117+
assert (
118+
"b'" not in ref and "b'" not in alt
119+
), f"byte-string repr in REF/ALT: REF={ref!r} ALT={alt!r}"
120120

121121

122122
@parametrize_with_cases("fixture,api", cases=".")

0 commit comments

Comments
 (0)