Summary
Freeze every hook revision in .pre-commit-config.yaml to a full immutable commit SHA.
Keep the corresponding release tag in an inline # frozen: comment. Use the format produced by pre-commit autoupdate --freeze.
Rationale
Immutable revisions protect contributors from a tag being moved after the configuration is merged. The frozen release tag lets Dependabot identify and update the intended hook release.
Affected area
Acceptance criteria
- Every non-local
repos[].rev value in .pre-commit-config.yaml is a full commit SHA.
- Each frozen SHA has its corresponding release tag in an adjacent
# frozen: comment.
- Dependabot can continue to update the
pre-commit ecosystem revisions.
- The pre-commit configuration remains valid.
Backlinks
Copied from dbfixtures/pytest-mysql#858
Summary
Freeze every hook revision in
.pre-commit-config.yamlto a full immutable commit SHA.Keep the corresponding release tag in an inline
# frozen:comment. Use the format produced bypre-commit autoupdate --freeze.Rationale
Immutable revisions protect contributors from a tag being moved after the configuration is merged. The frozen release tag lets Dependabot identify and update the intended hook release.
Affected area
.pre-commit-config.yamlAcceptance criteria
repos[].revvalue in.pre-commit-config.yamlis a full commit SHA.# frozen:comment.pre-commitecosystem revisions.Backlinks
Copied from dbfixtures/pytest-mysql#858