ci: lint scripts with ruff and shellcheck, bake pinned collections into the ci image #121

Merged
Defame1297 merged 11 commits from ci/ruff-shellcheck-and-baked-collections into main 2026-11-14 14:45:23 +00:00
3 changed files with 4 additions and 4 deletions
Showing only changes of commit 42ad8de88f - Show all commits

No files matched your search

+1 -1
View File
@@ -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
View File
@@ -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": [
"*"
],
+2 -2
View File
@@ -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]