From 80eba3f1f6f935d2ab67a94560eb15ce457d84ea Mon Sep 17 00:00:00 2001 From: FBumann <117816358+FBumann@users.noreply.github.com> Date: Mon, 27 Jul 2026 14:39:59 +0200 Subject: [PATCH] ci: pin ruff to the version in pyproject dev extra The lint job ran `uvx ruff` unpinned, so it silently tracked the latest release while the repo pins ruff==0.15.21 in [dev]. Ruff 0.16.0 began formatting Python code blocks inside Markdown, which flags 26 docs files and fails lint on every open PR regardless of its contents. Pinning to the same version pre-commit uses makes CI reproducible and puts ruff upgrades back under dependabot's control, where the docs reformat can land as a reviewed change alongside the bump. Co-Authored-By: Claude Opus 5 (1M context) --- .github/workflows/tests.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 4dc7e91a3..04c17f536 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -24,6 +24,7 @@ concurrency: env: PYTHON_VERSION: "3.11" + RUFF_VERSION: "0.15.21" # Keep in sync with the ruff pin in pyproject.toml [dev] MPLBACKEND: Agg PLOTLY_RENDERER: json FLIXOPT_CI: false @@ -45,8 +46,8 @@ jobs: - name: Run Ruff run: | - uvx ruff check . --output-format=github - uvx ruff format --check --diff . + uvx ruff@${{ env.RUFF_VERSION }} check . --output-format=github + uvx ruff@${{ env.RUFF_VERSION }} format --check --diff . test: runs-on: ubuntu-24.04