From bffe8cc23330a1f22fa4faafb536da1ae496925f Mon Sep 17 00:00:00 2001 From: Harsha Nalluru Date: Thu, 23 Jul 2026 14:09:39 -0700 Subject: [PATCH] ci: pin ruff to 0.15.22 to unbreak main ruff 0.16.0 (released 2026-07-23) enabled a large new default rule surface (UP045/UP006/UP035, I001, BLE001, S110, RUF*, SIM*, ...) that flags ~460 pre-existing findings across the repo. Because both the python-lint job and the python-sdk-test job install ruff unpinned, main and every open PR went red the moment 0.16.0 shipped, ~4 minutes before the next main run. No .py changed between the last green run (0.15.22) and the first red one, so pinning to 0.15.22 restores green. Verified locally: 'ruff check .' and the SDK 'ruff check src/ tests/' both pass clean under 0.15.22. This is a stopgap to unblock merges; the 0.16.0 findings can be addressed (or selectively ignored) in a follow-up, then the pin bumped. --- .github/workflows/ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 102ddc41..df8b643a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,11 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install ruff mypy + # Pin ruff: 0.16.0 (released 2026-07-23) turned on a large new rule + # surface that flags ~460 pre-existing findings across the repo and + # breaks CI on every PR. Pinned to the last green version; bump only + # once those findings are addressed (see python-sdk-test for the twin). + pip install ruff==0.15.22 mypy if [ -f examples/python/requirements.txt ]; then pip install -r examples/python/requirements.txt; fi - name: Lint with ruff run: ruff check . --extend-exclude '**/*.ipynb' @@ -91,7 +95,7 @@ jobs: - name: Lint with ruff working-directory: sdks/python/sdk run: | - pip install ruff + pip install ruff==0.15.22 # pinned; see python-lint job for why (ruff 0.16.0 regression) ruff check src/ tests/ - name: Type check with mypy working-directory: sdks/python/sdk