Skip to content

Commit 7d623c1

Browse files
fhennigclaudeCopilotfengelniederhammer
authored
chore(collection-seeding): bump all dependencies to latest versions (#1320)
## Summary - `requests`: `>=2.33.1` → `>=2.34` - `pytest`: `>=9.0.3` → `>=9.1` - `responses`: `>=0.26.0` → `>=0.26.2` - `ruff`: `>=0.9` → `>=0.15` - Formatter applied after ruff update (line-length reformatting in `rsv_nextclade_lineages.py` and its tests) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Fabian Engelniederhammer <92720311+fengelniederhammer@users.noreply.github.com>
1 parent 6b7eacb commit 7d623c1

4 files changed

Lines changed: 49 additions & 33 deletions

File tree

collection-seeding/pixi.lock

Lines changed: 25 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

collection-seeding/pixi.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ platforms = ["linux-64", "osx-arm64", "osx-64", "linux-aarch64"]
88
python = "3.13.*"
99

1010
[pypi-dependencies]
11-
requests = ">=2.33.1"
11+
requests = ">=2.34"
1212

1313
[tasks]
1414
seed = "python seed.py"
@@ -17,9 +17,9 @@ seed-lineages-sample = "python seed.py --source covid-pango-lineages-sample"
1717
seed-resistance = "python seed.py --source covid-resistance-mutations"
1818

1919
[feature.test.pypi-dependencies]
20-
pytest = ">=9.0.3"
21-
responses = ">=0.26.0"
22-
ruff = ">=0.9"
20+
pytest = ">=9.1"
21+
responses = ">=0.26.2"
22+
ruff = ">=0.15"
2323

2424
[feature.test.tasks]
2525
test = "pytest"

collection-seeding/sources/rsv_nextclade_lineages.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,11 @@ def _extract_clades(node, parent_clade=None, accum_nuc=None, accum_aa=None):
162162
if "clade" in labels:
163163
# Flatten branch-level AA mutations into GENE:MUT strings for the "new" variant.
164164
branch_aa_flat = sorted(
165-
[f"{gene}:{m}" for gene, gene_muts in branch_aa_by_gene.items() for m in gene_muts],
165+
[
166+
f"{gene}:{m}"
167+
for gene, gene_muts in branch_aa_by_gene.items()
168+
for m in gene_muts
169+
],
166170
key=lambda s: (s.split(":")[0], int(s.split(":")[1][1:-1])),
167171
)
168172
yield _CladeInfo(
@@ -272,7 +276,10 @@ def _format_accum_nuc(accum: dict[str, tuple[str, str]]) -> list[str]:
272276
E.g. {"982": ("A", "T")} → ["A982T"], meaning: at genome position 982 the reference
273277
has A and this clade (from root) has T.
274278
"""
275-
return [f"{ref}{pos}{cur}" for pos, (ref, cur) in sorted(accum.items(), key=lambda item: int(item[0]))]
279+
return [
280+
f"{ref}{pos}{cur}"
281+
for pos, (ref, cur) in sorted(accum.items(), key=lambda item: int(item[0]))
282+
]
276283

277284

278285
def _format_accum_aa(accum: dict[tuple[str, str], tuple[str, str]]) -> list[str]:
@@ -281,4 +288,9 @@ def _format_accum_aa(accum: dict[tuple[str, str], tuple[str, str]]) -> list[str]
281288
E.g. {("F", "8"): ("T", "G")} → ["F:T8G"], meaning: in gene F at codon 8 the reference
282289
has T and this clade (from root) has G.
283290
"""
284-
return [f"{gene}:{ref}{pos}{cur}" for (gene, pos), (ref, cur) in sorted(accum.items(), key=lambda item: (item[0][0], int(item[0][1])))]
291+
return [
292+
f"{gene}:{ref}{pos}{cur}"
293+
for (gene, pos), (ref, cur) in sorted(
294+
accum.items(), key=lambda item: (item[0][0], int(item[0][1]))
295+
)
296+
]

collection-seeding/tests/test_rsv_nextclade_lineages.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,11 @@ def test_full_aa_sorted_by_gene_then_position():
479479
cols = _build_collections(SORT_TREE, "rsvA", "RSV-A", "#nextclade-lineage")
480480
a = next(c for c in cols if c["name"] == "A")
481481
full_aa = next(v for v in a["variants"] if v["name"] == "Amino acid substitutions")
482-
assert full_aa["filterObject"]["aminoAcidMutations"] == ["F:T8A", "F:K124N", "G:T4N"]
482+
assert full_aa["filterObject"]["aminoAcidMutations"] == [
483+
"F:T8A",
484+
"F:K124N",
485+
"G:T4N",
486+
]
483487

484488

485489
# --- source class attributes ---

0 commit comments

Comments
 (0)