From 090d640917609e9aaf2370f4ef1eb5ca81050179 Mon Sep 17 00:00:00 2001 From: ***** <721466+soodoku@users.noreply.github.com> Date: Mon, 16 Nov 2026 14:55:44 -0800 Subject: [PATCH] Move link exclusions from [tool.preen] to lychee.toml lychee reads lychee.toml from the repo root by itself, so one list now serves preen's links check, the lychee pre-commit hook and the weekly link check. preen 0.10 drops link_ignore and fails a repo that still sets it. Patterns stay schemeless (a leading // marks the host boundary) because preen 0.9 scans .toml files and would read a pattern with a scheme as a link. Co-Authored-By: Claude Opus 5.5 --- lychee.toml | 7 +++++++ pyproject.toml | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 lychee.toml diff --git a/lychee.toml b/lychee.toml new file mode 100644 index 0000000..9e30f11 --- /dev/null +++ b/lychee.toml @@ -0,0 +1,7 @@ +# Patterns are written without a scheme: preen's links check scans this file +# too, and a pattern with one would be extracted and checked as a link. +exclude = [ + # Temporary exclusions while Pepy returns HTTP 503. + '//api[.]pepy[.]tech/badge/finite-selection$', + '//pepy[.]tech/projects/finite-selection$', +] diff --git a/pyproject.toml b/pyproject.toml index 31fa5d2..c419a48 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -123,13 +123,6 @@ addopts = ["-ra", "--strict-config", "--strict-markers"] [tool.coverage.run] source = ["src"] -[tool.preen] -# Temporary exclusions while Pepy returns HTTP 503. -link_ignore = [ - "^https://api[.]pepy[.]tech/badge/finite-selection$", - "^https://pepy[.]tech/projects/finite-selection$", -] - [tool.codespell] builtin = "clear,rare,en-GB_to_en-US" # som is the selection order matrix function, named as in the R package.