Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 3 additions & 10 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,22 +509,15 @@ def check_guide(session: nox.Session):
for key, value in remaps.items():
remap_args.extend(("--remap", f"{key} {value}"))

# some http URL fragments fail to be loaded (needs javascript?)
lychee_exclusions = [
"https://github.com/PyO3/pyo3/issues/1800#issuecomment-906786649",
"https://docs.rs/parking_lot/latest/parking_lot/type.Mutex.html#method.lock_arc",
"https://github.com/PyO3/pyo3/issues/1517#issuecomment-808664021",
"https://github.com/PyO3/maturin/blob/0dee40510083c03607834c821eea76964140a126/Readme.md#mixed-rustpython-projects",
]

# check all links in the guide
_run(
session,
"lychee",
"--include-fragments",
# FIXME: would be nice to use `--include-fragments` here, but we've had
# a lot of flaky failures from it - see https://github.com/lycheeverse/lychee/issues/1746
# "--include-fragments",
str(PYO3_GUIDE_SRC),
*remap_args,
"--exclude=" + "|".join(lychee_exclusions),
"--accept=200,429",
*session.posargs,
)
Expand Down
Loading