From 8d80f4d69e962977479e4dab2357ac0188ce0ba8 Mon Sep 17 00:00:00 2001 From: Trey Moen <50057480+greatgitsby@users.noreply.github.com> Date: Mon, 21 Sep 2026 17:25:17 -0700 Subject: [PATCH] ci: pin ruff to the latest passing release (#408) * ci: pin ruff to the passing baseline * ci: use the latest passing ruff release * ci: share the ruff pin through a lint dependency group * ci: note follow-up to update lint and unpin ruff --- .github/workflows/wheels.yml | 3 ++- pyproject.toml | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 093d2e2..60e01c7 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -111,7 +111,8 @@ jobs: - name: Lint and format with ruff run: | - pip install ruff + pip install --upgrade pip + pip install --group lint ruff check . ruff format --check . diff --git a/pyproject.toml b/pyproject.toml index 74827ec..655e6fb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,15 +22,20 @@ dependencies = [ [dependency-groups] dev = [ - "ruff", "tox", "pkgconfig", "cython>=3.0", "setuptools", + {include-group = "lint"}, {include-group = "test"}, {include-group = "docs"}, ] +lint = [ + # TODO: Update lint and formatting for newer Ruff releases, then remove the pin. + "ruff==0.15.22", +] + test = [ "pytest", "anyio",