Repository navigation
🐛 fix(cooled-prek): admit pinned hook versions - #59
Merged
Merged
Conversation
Hook environments build under the seven-day cutoff, so a repository that bumps a hook to a release younger than that fails cooled-hooks.yaml even though the bump is deliberate. An exact pin in a hook's additional_dependencies, or in its repository's install requirements at rev (install_requires in setup.py or setup.cfg, [project].dependencies in pyproject.toml), now writes the release's upload time plus one second to uv's exclude-newer-package while that release is younger than the cutoff. The pinned release installs, and a newer release of the package uploaded after it stays blocked. Once the release is a week old nothing is written. Its dependencies, ranges, and dev or extra requirements stay cooled. A pin and a [tool.nab] exception for the same package keep the later date. The snippet reads the config with PyYAML from uv under the same cutoff, because the runner's python3 may not have it. It runs under -I, which drops the runner's PYTHONPATH and keeps the repository off sys.path.
gaborbernat
force-pushed
the
fix/cooled-hooks-honor-pins
branch
from
November 7, 2026 03:15
def97a1 to
92720b2
Compare
This was referenced Nov 7, 2026
gaborbernat
added a commit
to gaborbernat/mdformat-hugo
that referenced
this pull request
Nov 7, 2026
A pull request that bumps a pre-commit hook to a release younger than seven days failed the `Hooks under the cooldown` check, although the bump is deliberate. [github-workflows 6.7.2](tox-dev/github-workflows#59) admits each exact hook pin up to its upload time while the release is inside the cooldown window; dependencies, ranges and newer releases stay cooled. This moves the shared workflow pins to it. 🧹 The shared changelog check now requires a `# expires YYYY-MM-DD` comment directly above each Nab cutoff exception, so the existing exception gets one.
gaborbernat
added a commit
to gaborbernat/pypi-changes
that referenced
this pull request
Nov 7, 2026
A pull request that bumps a pre-commit hook to a release younger than seven days failed the `Hooks under the cooldown` check, although the bump is deliberate. [github-workflows 6.7.2](tox-dev/github-workflows#59) admits each exact hook pin up to its upload time while the release is inside the cooldown window; dependencies, ranges and newer releases stay cooled. This moves the shared workflow pins to it. 🧹
gaborbernat
added a commit
to pypa/pipx
that referenced
this pull request
Nov 7, 2026
A pull request that bumps a pre-commit hook to a release younger than seven days failed the `Hooks under the cooldown` check, although the bump is deliberate. [github-workflows 6.7.2](tox-dev/github-workflows#59) admits each exact hook pin up to its upload time while the release is inside the cooldown window; dependencies, ranges and newer releases stay cooled. This moves the shared workflow pins to it. 🧹 The shared changelog check now requires a `# expires YYYY-MM-DD` comment directly above each Nab cutoff exception, so the existing exception gets one.
gaborbernat
added a commit
to pypa/virtualenv
that referenced
this pull request
Nov 7, 2026
A pull request that bumps a pre-commit hook to a release younger than seven days failed the `Hooks under the cooldown` check, although the bump is deliberate. [github-workflows 6.7.2](tox-dev/github-workflows#59) admits each exact hook pin up to its upload time while the release is inside the cooldown window; dependencies, ranges and newer releases stay cooled. This moves the shared workflow pins to it. 🧹 The shared changelog check now requires a `# expires YYYY-MM-DD` comment directly above each Nab cutoff exception, so the existing exception gets one.
gaborbernat
added a commit
to pytest-dev/pytest-env
that referenced
this pull request
Nov 7, 2026
A pull request that bumps a pre-commit hook to a release younger than seven days failed the `Hooks under the cooldown` check, although the bump is deliberate. [github-workflows 6.7.2](tox-dev/github-workflows#59) admits each exact hook pin up to its upload time while the release is inside the cooldown window; dependencies, ranges and newer releases stay cooled. This moves the shared workflow pins to it. 🧹
gaborbernat
added a commit
to pytest-dev/pytest-print
that referenced
this pull request
Nov 7, 2026
A pull request that bumps a pre-commit hook to a release younger than seven days failed the `Hooks under the cooldown` check, although the bump is deliberate. [github-workflows 6.7.2](tox-dev/github-workflows#59) admits each exact hook pin up to its upload time while the release is inside the cooldown window; dependencies, ranges and newer releases stay cooled. This moves the shared workflow pins to it. 🧹
gaborbernat
added a commit
to tox-dev/action-pre-commit-uv
that referenced
this pull request
Nov 7, 2026
A pull request that bumps a pre-commit hook to a release younger than seven days failed the `Hooks under the cooldown` check, although the bump is deliberate. [github-workflows 6.7.2](tox-dev/github-workflows#59) admits each exact hook pin up to its upload time while the release is inside the cooldown window; dependencies, ranges and newer releases stay cooled. This moves the shared workflow pins to it. 🧹
gaborbernat
added a commit
to tox-dev/devpi-process
that referenced
this pull request
Nov 7, 2026
A pull request that bumps a pre-commit hook to a release younger than seven days failed the `Hooks under the cooldown` check, although the bump is deliberate. [github-workflows 6.7.2](tox-dev/github-workflows#59) admits each exact hook pin up to its upload time while the release is inside the cooldown window; dependencies, ranges and newer releases stay cooled. This moves the shared workflow pins to it. 🧹 The shared changelog check now requires a `# expires YYYY-MM-DD` comment directly above each Nab cutoff exception, so the existing exception gets one.
gaborbernat
added a commit
to tox-dev/filelock
that referenced
this pull request
Nov 7, 2026
A pull request that bumps a pre-commit hook to a release younger than seven days failed the `Hooks under the cooldown` check, although the bump is deliberate. [github-workflows 6.7.2](tox-dev/github-workflows#59) admits each exact hook pin up to its upload time while the release is inside the cooldown window; dependencies, ranges and newer releases stay cooled. This moves the shared workflow pins to it. 🧹 The shared changelog check now requires a `# expires YYYY-MM-DD` comment directly above each Nab cutoff exception, so the existing exception gets one.
gaborbernat
added a commit
to tox-dev/jetbrains-fish
that referenced
this pull request
Nov 7, 2026
A pull request that bumps a pre-commit hook to a release younger than seven days failed the `Hooks under the cooldown` check, although the bump is deliberate. [github-workflows 6.7.2](tox-dev/github-workflows#59) admits each exact hook pin up to its upload time while the release is inside the cooldown window; dependencies, ranges and newer releases stay cooled. This moves the shared workflow pins to it. 🧹 The shared changelog check now requires a `# expires YYYY-MM-DD` comment directly above each Nab cutoff exception, so the existing exception gets one.
gaborbernat
added a commit
to tox-dev/mdformat-zola
that referenced
this pull request
Nov 7, 2026
A pull request that bumps a pre-commit hook to a release younger than seven days failed the `Hooks under the cooldown` check, although the bump is deliberate. [github-workflows 6.7.2](tox-dev/github-workflows#59) admits each exact hook pin up to its upload time while the release is inside the cooldown window; dependencies, ranges and newer releases stay cooled. This moves the shared workflow pins to it. 🧹 The shared changelog check now requires a `# expires YYYY-MM-DD` comment directly above each Nab cutoff exception, so the existing exception gets one.
gaborbernat
added a commit
to tox-dev/pipdeptree
that referenced
this pull request
Nov 7, 2026
A pull request that bumps a pre-commit hook to a release younger than seven days failed the `Hooks under the cooldown` check, although the bump is deliberate. [github-workflows 6.7.2](tox-dev/github-workflows#59) admits each exact hook pin up to its upload time while the release is inside the cooldown window; dependencies, ranges and newer releases stay cooled. This moves the shared workflow pins to it. 🧹 The shared changelog check now requires a `# expires YYYY-MM-DD` comment directly above each Nab cutoff exception, so the existing exception gets one.
gaborbernat
added a commit
to tox-dev/platformdirs
that referenced
this pull request
Nov 7, 2026
A pull request that bumps a pre-commit hook to a release younger than seven days failed the `Hooks under the cooldown` check, although the bump is deliberate. [github-workflows 6.7.2](tox-dev/github-workflows#59) admits each exact hook pin up to its upload time while the release is inside the cooldown window; dependencies, ranges and newer releases stay cooled. This moves the shared workflow pins to it. 🧹 The shared changelog check now requires a `# expires YYYY-MM-DD` comment directly above each Nab cutoff exception, so the existing exception gets one.
gaborbernat
added a commit
to tox-dev/pre-commit-uv
that referenced
this pull request
Nov 7, 2026
A pull request that bumps a pre-commit hook to a release younger than seven days failed the `Hooks under the cooldown` check, although the bump is deliberate. [github-workflows 6.7.2](tox-dev/github-workflows#59) admits each exact hook pin up to its upload time while the release is inside the cooldown window; dependencies, ranges and newer releases stay cooled. This moves the shared workflow pins to it. 🧹
gaborbernat
added a commit
to tox-dev/pyproject-api
that referenced
this pull request
Nov 7, 2026
A pull request that bumps a pre-commit hook to a release younger than seven days failed the `Hooks under the cooldown` check, although the bump is deliberate. [github-workflows 6.7.2](tox-dev/github-workflows#59) admits each exact hook pin up to its upload time while the release is inside the cooldown window; dependencies, ranges and newer releases stay cooled. This moves the shared workflow pins to it. 🧹
gaborbernat
added a commit
to tox-dev/python-discovery
that referenced
this pull request
Nov 7, 2026
A pull request that bumps a pre-commit hook to a release younger than seven days failed the `Hooks under the cooldown` check, although the bump is deliberate. [github-workflows 6.7.2](tox-dev/github-workflows#59) admits each exact hook pin up to its upload time while the release is inside the cooldown window; dependencies, ranges and newer releases stay cooled. This moves the shared workflow pins to it. 🧹 The shared changelog check now requires a `# expires YYYY-MM-DD` comment directly above each Nab cutoff exception, so the existing exception gets one.
gaborbernat
added a commit
to tox-dev/PyVenvManage
that referenced
this pull request
Nov 7, 2026
A pull request that bumps a pre-commit hook to a release younger than seven days failed the `Hooks under the cooldown` check, although the bump is deliberate. [github-workflows 6.7.2](tox-dev/github-workflows#59) admits each exact hook pin up to its upload time while the release is inside the cooldown window; dependencies, ranges and newer releases stay cooled. This moves the shared workflow pins to it. 🧹 The shared changelog check now requires a `# expires YYYY-MM-DD` comment directly above each Nab cutoff exception, so the existing exception gets one.
gaborbernat
added a commit
to tox-dev/sphinx-argparse-cli
that referenced
this pull request
Nov 7, 2026
A pull request that bumps a pre-commit hook to a release younger than seven days failed the `Hooks under the cooldown` check, although the bump is deliberate. [github-workflows 6.7.2](tox-dev/github-workflows#59) admits each exact hook pin up to its upload time while the release is inside the cooldown window; dependencies, ranges and newer releases stay cooled. This moves the shared workflow pins to it. 🧹
gaborbernat
added a commit
to tox-dev/sphinx-autodoc-typehints
that referenced
this pull request
Nov 7, 2026
A pull request that bumps a pre-commit hook to a release younger than seven days failed the `Hooks under the cooldown` check, although the bump is deliberate. [github-workflows 6.7.2](tox-dev/github-workflows#59) admits each exact hook pin up to its upload time while the release is inside the cooldown window; dependencies, ranges and newer releases stay cooled. This moves the shared workflow pins to it. 🧹 The shared changelog check now requires a `# expires YYYY-MM-DD` comment directly above each Nab cutoff exception, so the existing exception gets one.
gaborbernat
added a commit
to tox-dev/toml-fmt
that referenced
this pull request
Nov 7, 2026
A pull request that bumps a pre-commit hook to a release younger than seven days failed the `Hooks under the cooldown` check, although the bump is deliberate. [github-workflows 6.7.2](tox-dev/github-workflows#59) admits each exact hook pin up to its upload time while the release is inside the cooldown window; dependencies, ranges and newer releases stay cooled. This moves the shared workflow pins to it. 🧹
gaborbernat
added a commit
to tox-dev/tox-gh
that referenced
this pull request
Nov 7, 2026
A pull request that bumps a pre-commit hook to a release younger than seven days failed the `Hooks under the cooldown` check, although the bump is deliberate. [github-workflows 6.7.2](tox-dev/github-workflows#59) admits each exact hook pin up to its upload time while the release is inside the cooldown window; dependencies, ranges and newer releases stay cooled. This moves the shared workflow pins to it. 🧹 The shared changelog check now requires a `# expires YYYY-MM-DD` comment directly above each Nab cutoff exception, so the existing exception gets one.
gaborbernat
added a commit
to tox-dev/tox-ini-fmt
that referenced
this pull request
Nov 7, 2026
A pull request that bumps a pre-commit hook to a release younger than seven days failed the `Hooks under the cooldown` check, although the bump is deliberate. [github-workflows 6.7.2](tox-dev/github-workflows#59) admits each exact hook pin up to its upload time while the release is inside the cooldown window; dependencies, ranges and newer releases stay cooled. This moves the shared workflow pins to it. 🧹
gaborbernat
added a commit
to tox-dev/tox-uv
that referenced
this pull request
Nov 7, 2026
A pull request that bumps a pre-commit hook to a release younger than seven days failed the `Hooks under the cooldown` check, although the bump is deliberate. [github-workflows 6.7.2](tox-dev/github-workflows#59) admits each exact hook pin up to its upload time while the release is inside the cooldown window; dependencies, ranges and newer releases stay cooled. This moves the shared workflow pins to it. 🧹 The shared changelog check now requires a `# expires YYYY-MM-DD` comment directly above each Nab cutoff exception, so the existing exception gets one.
gaborbernat
added a commit
to tox-dev/xml-fmt
that referenced
this pull request
Nov 7, 2026
A pull request that bumps a pre-commit hook to a release younger than seven days failed the `Hooks under the cooldown` check, although the bump is deliberate. [github-workflows 6.7.2](tox-dev/github-workflows#59) admits each exact hook pin up to its upload time while the release is inside the cooldown window; dependencies, ranges and newer releases stay cooled. This moves the shared workflow pins to it. 🧹
gaborbernat
added a commit
to tox-dev/tox
that referenced
this pull request
Nov 7, 2026
A pull request that bumps a pre-commit hook to a release younger than seven days failed the `Hooks under the cooldown` check, although the bump is deliberate. [github-workflows 6.7.2](tox-dev/github-workflows#59) admits each exact hook pin up to its upload time while the release is inside the cooldown window; dependencies, ranges and newer releases stay cooled. This moves the shared workflow pins to it. 🧹 The shared changelog check now requires a `# expires YYYY-MM-DD` comment directly above each Nab cutoff exception, so the existing exception gets one.
gaborbernat
added a commit
to tox-dev/turbohtml
that referenced
this pull request
Nov 7, 2026
A pull request that bumps a pre-commit hook to a release younger than seven days failed the `Hooks under the cooldown` check, although the bump is deliberate. [github-workflows 6.7.2](tox-dev/github-workflows#59) admits each exact hook pin up to its upload time while the release is inside the cooldown window; dependencies, ranges and newer releases stay cooled. This moves the shared workflow pins to it. 🧹 The shared changelog check now requires a `# expires YYYY-MM-DD` comment directly above each Nab cutoff exception, so the existing exception gets one.
This was referenced Nov 7, 2026
gaborbernat
added a commit
to gaborbernat/mdformat-hugo
that referenced
this pull request
Nov 7, 2026
The `News fragment` job ran prek through `cooled-prek` 6.5.0, which held back a hook bumped to a release younger than seven days, so the job failed although the bump was deliberate. [github-workflows 6.7.2](tox-dev/github-workflows#59) admits each exact hook pin while it is inside the cooldown window; the earlier 6.7.2 bump missed this pin. 🧹
gaborbernat
added a commit
to tox-dev/sphinx-autodoc-typehints
that referenced
this pull request
Nov 7, 2026
The `News fragment` job ran prek through `cooled-prek` 6.5.0, which held back a hook bumped to a release younger than seven days, so the job failed although the bump was deliberate. [github-workflows 6.7.2](tox-dev/github-workflows#59) admits each exact hook pin while it is inside the cooldown window; the earlier 6.7.2 bump missed this pin. 🧹
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A repository that bumps a pre-commit hook to a release younger than seven days fails
cooled-hooks.yaml, although the bump is deliberate. bump-deps-index#302 pinned the simplint mirror at v0.7.1, whose package requiressimplint==0.7.1, and the hook could not install because uv's seven-dayexclude-newerhid that release. 🧹With this change the cooldown holds back only what nobody chose. Before building hook environments,
cooled-prekcollects the exactname==versionpins of each Python hook, from itsadditional_dependenciesand from the hook repository's install requirements at the pinnedrev(install_requiresinsetup.pyorsetup.cfg,[project].dependenciesinpyproject.toml). For each pin it looks up the pinned release's upload time on PyPI and admits that release up to its upload time while it is younger than the cutoff. Once the release is a week old nothing is written, and the normal cutoff applies again. A newer release of the same package uploaded after the pinned one stays blocked. The pin already limits the hook to that one version; its dependencies, ranges, dev and extra requirements and every unpinned package still install under the cutoff. A pin and a[tool.nab]exception for the same package keep the later date, and a hook repository or PyPI lookup that fails fails the run.The
exclude-newer-packageinput ofcooled-hooks.yamlonly ever reached the locked release tools, never the hook environments; its description and the docs now say so.