From 6d36797d55936bf3f11cc2b324a62cd65a5bae14 Mon Sep 17 00:00:00 2001 From: Jack Luo Date: Thu, 23 Jul 2026 17:39:10 -0400 Subject: [PATCH] ci(lint): Cap ruff below v0.16 to avoid newly stabilized CPY001 lint failures (fixes #2422). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ruff 0.16.0 (released 2026-07-23) stabilized CPY001 (missing-copyright-notice) out of preview. Our shared lint config (yscope-dev-utils ruff.toml) uses select = ["ALL"], which excludes preview rules but picks up newly stabilized ones, so CI lint runs began failing on Python files without copyright notices — with the floating ruff>=0.4.4 pin, this red-flags every branch without any code change. Cap ruff below v0.16 (resolves to 0.15.22, the version from the last green run) until we deliberately adopt 0.16's newly stabilized rules. Co-Authored-By: Claude Fable 5 --- lint-requirements.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lint-requirements.txt b/lint-requirements.txt index 3452e67fd7..3d043a21c7 100644 --- a/lint-requirements.txt +++ b/lint-requirements.txt @@ -6,7 +6,10 @@ clang-format~=21.1.2 clang-tidy~=19.1 # Python -ruff>=0.4.4 +# Cap below v0.16 until we adopt its newly stabilized rules (e.g., CPY001 requires copyright +# notices, which our Python files don't have yet). +# Issue: https://github.com/y-scope/clp/issues/2422 +ruff>=0.4.4,<0.16 # YAML yamale>=6.1.0