From fb7563e263cb779887cb79612fa8d562f19e6ab9 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Thu, 24 Sep 2026 08:07:25 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20ruff=20UP031=20=E2=80=94=20percent=20for?= =?UTF-8?q?matting=20in=20the=20new=20naming=20test=20(4392)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Run 7456's only failure. `"comic2_%02d.jpg" % i` is an f-string here; UP is enabled repo-wide and I wrote the one construct it forbids. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01LVjrnpQjRgHdvq95rASoiR --- tests/test_post_naming.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_post_naming.py b/tests/test_post_naming.py index ff2f662..3bc241b 100644 --- a/tests/test_post_naming.py +++ b/tests/test_post_naming.py @@ -294,7 +294,7 @@ def test_a_name_reused_across_many_posts_is_still_caught(): """The other half of the same property — the cap has to keep working once the unit changes. Measured habits: tamadaheijun's `comic2` spans 8 posts, conto's `seth2` 5.""" - counts = token_frequencies([["comic2_%02d.jpg" % i] for i in range(8)]) + counts = token_frequencies([[f"comic2_{i:02d}.jpg"] for i in range(8)]) assert counts["comic2"] == 8 assert shared_identity({"comic2"}, {"comic2"}, counts) == (0.0, None)