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. Installs use `pip install --require-hashes -r requirements-dev.lock -r requirements-dev.txt` (dev-setup.sh, the ci image, the fallback install of Lint and Build): pip refuses an unhashed package and any disagreement between the two files. - scripts/lock-requirements.sh regenerates the lock (pinned pip and pip-tools, --upgrade mode). - renovate.json: the pip-compile manager replaces pip_requirements for the lock, plus a weekly, never automerged lock-file maintenance PR for transitive packages. Not yet dry-run on Renovate. - check_bot_pr_diff.py accepts `rev: <sha> # frozen: <tag>` and lock entries, hashes and plain comments, but not a changed pip-compile header command. - ci image 0.2.18 -> 0.2.19 (image inputs changed).
17 lines
1.0 KiB
Plaintext
17 lines
1.0 KiB
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 -r requirements-dev.txt
|
|
# 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; pip refuses an
|
|
# install in which the two files disagree. Renovate bumps a pin here and regenerates the lock
|
|
# (pip-compile manager); by hand, 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
|