Files
Kamino/requirements-dev.txt
T
Dragonish 1184938f1e
Build / build (pull_request) Successful in 10s
Lint / lint (pull_request) Successful in 1m37s
Molecule / molecule (pull_request) Successful in 5m26s
feat(ci): pin hook revisions by SHA and install dev tools from a hashed lock
Refs #113.

- .pre-commit-config.yaml: every hook repo is pinned by commit SHA with the release in a
  `# frozen:` comment, so a moved tag cannot change the code a hook environment is built from.
- requirements-dev.lock: hashed lock of requirements-dev.txt, installed with
  `pip install --require-hashes` by scripts/dev-setup.sh, the ci image and the fallback
  install of the Lint and Build workflows.
- scripts/lock-requirements.sh regenerates the lock; scripts/check_requirements_lock.py
  (offline, a pre-commit hook) fails when it drifts from the direct pins.
- check_bot_pr_diff.py accepts a `rev:` line with a `# frozen:` comment and nothing else.
- ci image 0.2.16 -> 0.2.17 (image inputs changed).
2026-11-14 15:14:39 +00:00

16 lines
900 B
Plaintext

# Pinned tooling for lint and build, used by CI (.gitea/workflows) and locally:
# python3 -m venv .venv && . .venv/bin/activate && pip install --require-hashes -r requirements-dev.lock
# This file holds the direct pins; requirements-dev.lock is their hashed lock (every transitive
# package too, with the sha256 of each release file) and is what gets installed. After editing
# a pin here, run scripts/lock-requirements.sh and commit both files (#113).
# ansible-core and ansible-lint started equal to the environment repo's runner image
# (hosts/group_vars/all/ci_python_tools.yml there) and are no longer kept equal automatically.
# Renovate (renovate.json) bumps these pins; a bump rebuilds the ci image (images/ci) and
# Renovate then moves the consumers' pins to it.
ansible-core==2.22.0
ansible-lint==26.10.1
pre-commit==4.7.0
antsibull-changelog==0.37.0
galaxy-importer==0.4.44
reuse==6.3.0