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 <[email protected]> Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
This commit is contained in:
1 parent
f563baf237
commit
42ad8de88f
3 files changed
+4
-4
No files matched your search
@@ -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
|
||||
|
||||
+1
-1
@@ -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": [
|
||||
"*"
|
||||
],
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user