nixbot

builds

failed treefmt-check checks.aarch64-darwin.formatting · build #136 · raw

1tribuchet: building on mac022treefmt v2.6.0traversed 173 files3emitted 154 files for processing4formatted 154 files (2 changed) in 1.672s5 M nix_update/patches.py6 M tests/test_patches.py7diff --git a/nix_update/patches.py b/nix_update/patches.py8index 717fc03..c699b87 1006449--- a/nix_update/patches.py10+++ b/nix_update/patches.py11@@ -163,7 +163,9 @@ def drop_merged_patches(opts: Options, package: Package) -> None:12 if not package.patches or package.patches_position is None:13 return14 merged = _merged_patch_indices(opts)15- dropped = drop_patch_indices(package.filename, package.patches_position.line, merged)16+ dropped = drop_patch_indices(17+ package.filename, package.patches_position.line, merged18+ )19 for index in sorted(dropped):20 patch = Path(str(package.patches[index]["path"])).name21 info(f"Drop patch already applied upstream: {patch}")22diff --git a/tests/test_patches.py b/tests/test_patches.py23index b9559b0..ea58988 10064424--- a/tests/test_patches.py25+++ b/tests/test_patches.py26@@ -21,10 +21,13 @@ def test_drop_local_and_fetchpatch_expressions(tmp_path: Path) -> None:27 28 drop_patch_indices(str(expression), 1, {1, 2})29 30- assert expression.read_text() == """patches = [31+ assert (32+ expression.read_text()33+ == """patches = [34 ./keep.patch35 ];36 """37+ )38 39 40 def test_arbitrary_patch_expression_is_removed_by_index(tmp_path: Path) -> None:41@@ -38,10 +41,13 @@ def test_arbitrary_patch_expression_is_removed_by_index(tmp_path: Path) -> None:42 43 drop_patch_indices(str(expression), 1, {1})44 45- assert expression.read_text() == """patches = [46+ assert (47+ expression.read_text()48+ == """patches = [49 ./fix.patch50 ];51 """52+ )53 54 55 def test_compact_patch_list_entry_is_removed(tmp_path: Path) -> None: