-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Re-integrate Sphinx's linkcheck into CI configuration #12932
base: main
Are you sure you want to change the base?
Changes from all commits
d60d253
024917a
1cb2f70
9e5a6a1
e7b64e9
029fb15
b95e56f
9777e1b
3f2e0c9
0bb4166
3ea3e2f
22f5296
683121f
7128c3d
cabba81
b4655f9
3e48d69
dfaada7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -141,10 +141,18 @@ | |
linkcheck_ignore = [ | ||
"https://blogs.msdn.microsoft.com/bharry/2017/06/28/testing-in-a-cloud-delivery-cadence/", | ||
"http://pythontesting.net/framework/pytest-introduction/", | ||
r"https://github.com/pytest-dev/pytest/issues/\d+", | ||
r"https://github.com/pytest-dev/pytest/pull/\d+", | ||
r"https://pypi\.org/project/pytest.*", | ||
r"https://github\.com/sponsors/.*", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this necessary? I don't remember such URLs not working in other projects. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
this is from the original version. But you're right, this doesn't trigger any issues with link. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Without It seems to be related to missing credentials or tokens for GitHub but I'm not 100% sure. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With |
||
r"https://github\.com/pytest-dev/pytest/issues/.*", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should probably be more accurate. Such a wildcard would also silence obviously broken URLs like https://github.com/pytest-dev/pytest/pull/zombie that should produce errors otherwise. |
||
r"https://github\.com/pytest-dev/pytest/pull/.*", | ||
] | ||
linkcheck_workers = 5 | ||
|
||
linkcheck_workers = 20 | ||
linkcheck_timeout = 30 | ||
linkcheck_retries = 2 | ||
linkcheck_anchors = False | ||
linkcheck_rate_limit_timeout = 2.0 | ||
linkcheck_delay = 2.0 | ||
Comment on lines
+150
to
+155
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What are the defaults of these? |
||
|
||
# -- Options for HTML output ---------------------------------------------------------- | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,7 +128,7 @@ usedevelop = True | |
changedir = doc/en | ||
deps = -r{toxinidir}/doc/en/requirements.txt | ||
commands = | ||
sphinx-build -W -q --keep-going -b linkcheck . _build | ||
sphinx-build -W -q --keep-going -b linkcheck -j auto . _build | ||
setenv = | ||
# Sphinx is not clean of this warning. | ||
PYTHONWARNDEFAULTENCODING= | ||
|
@@ -143,7 +143,7 @@ passenv = | |
deps = | ||
PyYAML | ||
regendoc>=0.8.1 | ||
sphinx | ||
sphinx>=8.1.3 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wonder if this should instead just reference the requirements file or the base section value... |
||
allowlist_externals = | ||
make | ||
commands = | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This matches any project page starting with
pytest
. Likepytesty
. Why? I don't think I've seen any problems with this host in linkcheck in the past.