Repository navigation
Conversation
prek
zanieb
reviewed
Aug 18, 2026
Comment on lines
+56
to
+57
| export npm_config_ignore_scripts=true | ||
| export npm_config_min_release_age=7 |
Member
There was a problem hiding this comment.
Can we encode these in the pre-commit config instead?
There was a problem hiding this comment.
These could be configured globally via default_env, but they are only applied during hook environment installation starting with prek 0.5.1. In earlier releases, they only took effect at hook runtime.
This branch has not been deployed
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.
The frozen
[email protected]hook still depends on an implicit Node/npm installation policy. Keep the existing mirror hook, requireprek==0.4.13, and letprekmanage Node24.19.0with Renovate updates limited to Node 24. Configureprek updateto freeze revisions and wait seven days for new tags. Setnpm_config_ignore_scripts=trueandnpm_config_min_release_age=7in CI, and document the same caller-level settings for contributors. The YAML selection and formatting behavior remain unchanged. This freezes hook revisions, not the full transitive npm dependency tree.Related: #4283 handles the documentation’s one-off tool pins. This leaves that command untouched to avoid a competing edit; moving it to
prek exec prettierremains a separate follow-up. astral-sh/ruff#27842 applies the matching nativeprekpolicy, while astral-sh/ecosystem-analyzer#162 removes an unnecessaryprettierhook.