Skip to content

✨ feat(cooled-prek): admit [tool.nab] cutoff exceptions - #28

Merged
gaborbernat merged 1 commit into
tox-dev:mainfrom
gaborbernat:cooled-prek-exceptions
Oct 27, 2026
Merged

gaborbernat merged 1 commit into
tox-dev:mainfrom
gaborbernat:cooled-prek-exceptions

Conversation

@gaborbernat

Copy link
Copy Markdown
Member

A hook dependency pinned to a release newer than seven days stops a release: pipx's first release through the shared pipeline failed at prek install-hooks because docstrfmt pins sphinx==9.2.0, published on 2026-10-21 (run). 🔒 Callers already declare temporary cooldown exceptions for the release lock as packages.<name>.uploaded-prior-to in [tool.nab]; hook environments now honor the same exceptions, so a repository rolls such a pin forward by adding one exception instead of pinning back.

cooled-prek keeps the seven-day cutoff in the environment and keeps ignoring the repository's uv settings. prek installs hooks through uv pip, which reads per-package cutoffs only from a config file (--exclude-newer-package has no environment variable there), so the action writes the [tool.nab] exceptions to a temporary uv config that holds nothing else and points UV_CONFIG_FILE at it. Without exceptions, no config file is set, as before.

prek installs hooks with uv pip, which takes per-package cutoffs only from a
config file, so cooled-prek writes the [tool.nab] packages.*.uploaded-prior-to
exceptions to a temporary uv config. A hook dependency pinned to a release
newer than seven days now installs under the same exception the release lock
uses, instead of failing prepare.
@gaborbernat gaborbernat added the enhancement New feature or request label Oct 27, 2026
@gaborbernat
gaborbernat merged commit e200a66 into tox-dev:main Oct 27, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant