From 15b47777ae7cf3c6e6b7ec644e374f181adff5dd Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Thu, 14 May 2026 13:24:19 -0400 Subject: [PATCH] chore(fc2a): move ruff version ownership to the runner image MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Per FabledRulebook forgejo.md, toolchain versions live on the runner image, not in the workflow. Two changes here, paired with the runner image bump (RUFF_VERSION 0.9.7 -> 0.15.13 in CI-Runner/CI-python): - Drop "ruff>=0.9,<1.0" from ci.yml's pip install — the runner image's pre-installed ruff is authoritative now. Previously this constraint matched the existing 0.9.7 in the image so pip never upgraded. - Flip ruff.toml's target-version back to py314 now that the runner has a ruff new enough to know about it. Next bump path: edit RUFF_VERSION in CI-Runner/CI-python/Dockerfile, 'make push', done. No workflow churn. Co-Authored-By: Claude Opus 4.7 (1M context) --- .forgejo/workflows/ci.yml | 5 ++++- ruff.toml | 7 +------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index ce48fa3..8021207 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -44,7 +44,10 @@ jobs: - uses: actions/checkout@v4 - name: Install Python deps - run: pip install -r requirements.txt pytest pytest-asyncio "ruff>=0.9,<1.0" + # ruff is pre-installed in the python-ci runner image (see + # CI-Runner/CI-python/Dockerfile's RUFF_VERSION). Per FabledRulebook + # forgejo.md, toolchain versions live on the runner image, not here. + run: pip install -r requirements.txt pytest pytest-asyncio - name: Ruff lint run: ruff check backend/ tests/ alembic/ diff --git a/ruff.toml b/ruff.toml index 79bdb97..b8603a4 100644 --- a/ruff.toml +++ b/ruff.toml @@ -1,9 +1,4 @@ -target-version = "py313" -# Note: runtime is Python 3.14, but the python-ci runner image ships -# ruff 0.9.7 which only knows target-version up to py313. Bumping the -# runner image's RUFF_VERSION to 0.13+ would let us flip this back to -# py314; until then py313 is the highest ruff accepts here. Code still -# runs on 3.14; we just don't get UP suggestions for 3.14-only optimizations. +target-version = "py314" line-length = 100 [lint]