ci(pre-commit): run check-json, the script tests and the image pins as hooks

A contributor learns about a broken renovate.json, a failing script test or
a bad image pin from Lint today; as hooks they fail before the push.

- check-json from pre-commit-hooks covers renovate.json.
- script-tests runs the suite at pre-push, since it takes minutes. Its
  GIT_DIR points at an uncreatable path, so a fixture that keeps the
  caller's git environment fails instead of writing to this repository.
  Lint runs it by id; the suite now runs under the network guard.
- check-image-pins runs check_image_versions.py pins on every commit: its
  inputs span workflows, Dockerfiles and docs/images, and it fails when one
  is missing. Lint's pre-commit run replaces its separate step.

Adding hooks changes .pre-commit-config.yaml, an input of the ci image, so
this pull request takes Lint's slow path and the next Images run publishes
a new ci version.

Refs: #187

Assisted-by: Claude Code
This commit is contained in:
Defame1297 committed 2026-12-06 19:11:42 +00:00
1 parent b2e547edd5
commit fac7ed47be
8 files changed
+39 -27

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@ pre-commit==4.7.0
antsibull-changelog==0.38.0
galaxy-importer==0.4.45
reuse==6.3.0
# molecule without its Docker driver: Lint's "Test the repository scripts" step imports it in
# molecule without its Docker driver: Lint's run of the script-tests hook imports it in
# test_check_scenarios_load_checkout.py and test_run_molecule_scenarios.py, which skip without it.
molecule==26.11.1
# proxmoxer: the controller-side library community.proxmox's modules import (they refuse anything below 2.3),