From 42ad8de88f0f26e9f2b2a13d867f0f4aa9a31476 Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Sat, 14 Nov 2026 14:04:33 +0000 Subject: [PATCH] fix(ci): correct three review findings on the ruff and collections change ruff.toml described the older E/F default rule set, which ruff 0.17 widened. The ansible-lint hook now also runs when requirements.yml changes, so a pin bump in a partial commit is linted. The Renovate post-upgrade note names requirements.yml among the image inputs. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG --- .pre-commit-config.yaml | 2 +- renovate.json | 2 +- ruff.toml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c805a24..96cb5ca 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -88,7 +88,7 @@ repos: description: ansible-lint production profile, offline entry: ansible-lint --offline --nocolor language: system - files: ^(roles/|plugins/|meta/|galaxy\.yml$|\.ansible-lint$|\.yamllint$) + files: ^(roles/|plugins/|meta/|galaxy\.yml$|requirements\.yml$|\.ansible-lint$|\.yamllint$) stages: ['pre-commit'] pass_filenames: false require_serial: true diff --git a/renovate.json b/renovate.json index 6f3c4ee..5b96681 100644 --- a/renovate.json +++ b/renovate.json @@ -95,7 +95,7 @@ "automerge": true }, { - "description": "Every update runs scripts/bump_image_versions.py against origin/main as a postUpgradeTasks command (the base ref and clone depth in Renovate's checkout are verified by the first dry run). The rule matches every package (matchPackageNames *, which strict validation requires as a selector) on purpose: with executionMode branch only the FIRST upgrade's postUpgradeTasks of a branch counts and a branch can carry several upgrades; the script is a no-op when no image input (requirements-dev.txt, .pre-commit-config.yaml, images/**) changed and otherwise makes the PATCH bump of the image version in image.yml. The command must match RENOVATE_ALLOWED_COMMANDS in renovate.yml exactly.", + "description": "Every update runs scripts/bump_image_versions.py against origin/main as a postUpgradeTasks command (the base ref and clone depth in Renovate's checkout are verified by the first dry run). The rule matches every package (matchPackageNames *, which strict validation requires as a selector) on purpose: with executionMode branch only the FIRST upgrade's postUpgradeTasks of a branch counts and a branch can carry several upgrades; the script is a no-op when no image input (requirements-dev.txt, requirements.yml, .pre-commit-config.yaml, images/**) changed and otherwise makes the PATCH bump of the image version in image.yml. The command must match RENOVATE_ALLOWED_COMMANDS in renovate.yml exactly.", "matchPackageNames": [ "*" ], diff --git a/ruff.toml b/ruff.toml index b3509be..07bbb45 100644 --- a/ruff.toml +++ b/ruff.toml @@ -1,6 +1,6 @@ # Ruff configuration for the Python under scripts/ and tests/scripts/ (#112). -# Ruff's defaults (pycodestyle E4/E7/E9 and pyflakes F) plus the complexity and function-size -# rules, all at their default thresholds. Do not tune a threshold or ignore a rule globally: +# The default rule set of the pinned ruff (0.17 widened it well beyond the older pycodestyle E4/E7/E9 +# and pyflakes F) plus the complexity and function-size rules, all at their default thresholds. Do not tune a threshold or ignore a rule globally: # suppress a finding inline with its rule code and a reason. [lint]