Skip to content

Commit c1ccc51

Browse files
committed
refactor: reorganize examples and add link checker
1 parent b0239b6 commit c1ccc51

3 files changed

Lines changed: 28 additions & 1 deletion

File tree

.github/workflows/link-check.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Link Check
2+
3+
on:
4+
push:
5+
branches: [ main, master ]
6+
pull_request:
7+
schedule:
8+
- cron: "0 3 * * 1"
9+
10+
jobs:
11+
link-check:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: lycheeverse/lychee-action@v2
16+
with:
17+
args: --no-progress README.md docs/ apps/ examples/ benchmarks/
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,14 @@ dev = [
134134
"ruff>=0.12.4",
135135
]
136136

137+
[tool.lychee]
138+
accept = ["200", "403", "429", "503"]
139+
timeout = 20
140+
max_retries = 2
141+
exclude = ["localhost", "127.0.0.1", "example.com"]
142+
exclude_path = [".git/", ".venv/", "__pycache__/", "third_party/"]
143+
scheme = ["https", "http"]
144+
137145
[tool.pytest.ini_options]
138146
testpaths = ["tests"]
139147
python_files = ["test_*.py"]

0 commit comments

Comments
 (0)