From f3c8bc23c8e5fa646f9440ab3df7fe08f29ef510 Mon Sep 17 00:00:00 2001 From: Kenny PH Hsieh Date: Mon, 9 Nov 2026 16:51:15 +0800 Subject: [PATCH] tests: pin the ruff lint rule set tests/ruff.toml selects no lint rules, so ruff checks whatever its default set is. Ruff 0.16 enlarged that set from 59 rules (E4, E7, E9, F) to over 400, and ruff 0.17 reports 112 findings on the current tests, while the pinned 0.14.10 in CI passes. Select the pre-0.16 defaults explicitly, so the checks stay the same across ruff versions. This changes nothing under the pinned 0.14.10. Signed-off-by: Kenny PH Hsieh --- tests/ruff.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/ruff.toml b/tests/ruff.toml index cc89e9e8..f683c89f 100644 --- a/tests/ruff.toml +++ b/tests/ruff.toml @@ -1,3 +1,7 @@ line-length = 80 +[lint] +# Ruff 0.16 enlarged its default rule set; pin the earlier defaults so the +# checks do not depend on the installed ruff version. +select = ["E4", "E7", "E9", "F"] [format] quote-style = 'preserve'