Skip to content

Commit 747a8d0

Browse files
authored
Consider HTTP 429 a succcessful response in the Markdown link check. (#2191)
1 parent 8c336ff commit 747a8d0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ repos:
4949
hooks:
5050
- id: markdown-link-check
5151
exclude: ^(vendor)
52-
# Retry when the endpoint returns HTTP 429 (Too Many Requests)
53-
args: [-r]
52+
# If the endpoint returns HTTP 429 (Too Many Requests), consider it a
53+
# successful check.
54+
args: ["-a 200,206,429"]
5455

5556
- repo: local
5657
hooks:

0 commit comments

Comments
 (0)