Skip to content

Commit b9bb306

Browse files
committed
Fix ignores
1 parent 403e8ac commit b9bb306

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

source/conf.py

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -132,28 +132,32 @@
132132
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-the-linkcheck-builder
133133

134134
linkcheck_ignore = [
135-
"http://localhost:\\d+",
136-
"https://packaging.python.org/en/latest/specifications/schemas/.*",
137-
"https://test.pypi.org/project/example-package-YOUR-USERNAME-HERE",
138-
"https://pypi.org/manage/*",
139-
"https://test.pypi.org/manage/*",
135+
r"http://localhost:\d+",
136+
r"https://packaging.python.org/en/latest/specifications/schemas/.*",
137+
r"https://test.pypi.org/project/example-package-YOUR-USERNAME-HERE",
138+
r"https://pypi.org/manage/.*",
139+
r"https://test.pypi.org/manage/.*",
140140
# Temporarily ignored. Ref:
141141
# https://github.com/pypa/packaging.python.org/pull/1308#issuecomment-1775347690
142-
"https://www.breezy-vcs.org/*",
142+
r"https://www.breezy-vcs.org/.*",
143143
# Ignore while StackOverflow is blocking GitHub CI. Ref:
144144
# https://github.com/pypa/packaging.python.org/pull/1474
145-
"https://stackoverflow.com/*",
146-
"https://pyscaffold.org/*",
147-
"https://anaconda.org",
148-
"https://www.cisa.gov/sbom",
149-
"https://developers.redhat.com/products/softwarecollections/overview",
150-
"https://math-atlas\\.sourceforge\\.net/?",
145+
r"https://stackoverflow.com/.*",
146+
r"https://pyscaffold.org/.*",
147+
r"https://anaconda.org",
148+
r"https://www.cisa.gov/sbom",
149+
r"https://developers.redhat.com/products/softwarecollections/overview",
150+
r"https://math-atlas\.sourceforge\.net/?",
151+
# Self-signed certificate, fails in CI
152+
r"https://click\.palletsprojects\.com/.*",
153+
r"https://typer\.tiangolo\.com/.*",
151154
]
152155
linkcheck_retries = 5
153156
# Ignore anchors for common targets when we know they likely won't be found
154157
linkcheck_anchors_ignore_for_url = [
155158
# GitHub synthesises anchors in JavaScript, so Sphinx can't find them in the HTML
156159
r"https://github\.com/",
160+
r"https://docs\.github\.com/",
157161
# While PyPI has its botscraping defenses active, Sphinx can't resolve the anchors
158162
# https://github.com/pypa/packaging.python.org/issues/1744
159163
r"https://pypi\.org/",

0 commit comments

Comments
 (0)