ci: skip uv-lock on pre-commit.ci (no network access there) - #15112
Merged
cclauss merged 1 commit intoAug 28, 2026
Merged
Conversation
The uv-lock hook (added in TheAlgorithms#15111) resolves dependencies against PyPI, but pre-commit.ci runs hooks in a sandbox with no network access, so it fails on every PR with a DNS lookup error. Skip it on pre-commit.ci via the ci.skip key; the hook still runs locally and in the uv-lock CI job.
cclauss
enabled auto-merge (squash)
August 28, 2026 13:38
cclauss
approved these changes
Aug 28, 2026
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.
Describe your change:
The
uv-lockhook added in #15111 is failing on pre-commit.ci for every PR:pre-commit.ci runs hooks in a sandbox without network access, but
uv-lockresolves dependencies against PyPI, so it can never succeed there. This addsskip: [uv-lock]under thecikey so pre-commit.ci stops reporting a red check on unrelated PRs. The hook still runs locally and theuv.lockfile is still kept in sync by the dedicateduv-lockGitHub Actions job / local runs.This is a follow-up fixing a regression from my own #15111 — sorry for the noise.
Checklist: