Skip to content

Commit 12d66df

Browse files
ci(pre-commit): skip markdown-link-check on pre-commit.ci
pre-commit.ci runs hooks in a sandbox without network access, so markdown-link-check reports every external URL as dead (Status: 0). This surfaced on the first autoupdate PR, which runs all hooks against all files. The hook still runs locally on commit for changed files.
1 parent f19ad26 commit 12d66df

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ ci:
33
autoupdate_commit_msg: "chore: update pre-commit hooks"
44
autoupdate_branch: "main"
55
autofix_prs: false # Comment "pre-commit.ci autofix" on a PR to trigger
6+
# markdown-link-check needs network access to validate URLs, but pre-commit.ci
7+
# runs hooks without internet, so every external link fails (Status: 0).
8+
# It still runs locally on commit. See PR #83.
9+
skip: [markdown-link-check]
610

711
default_language_version:
812
python: python3.10

0 commit comments

Comments
 (0)