chore(fc2a): move ruff version ownership to the runner image

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) <noreply@anthropic.com>
This commit is contained in:
2026-05-14 13:24:19 -04:00
parent 72c93060f9
commit 15b47777ae
2 changed files with 5 additions and 7 deletions
+4 -1
View File
@@ -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/
+1 -6
View File
@@ -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]