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).
16 lines
900 B
Plaintext
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
|