Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

Use standard lychee pre-commit hook with v0.22.0 (#100)

Maximilian Roos3356825ec615
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 787087fbc..7820f68b3 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -26,27 +26,24 @@ repos:
hooks:
- id: clippy
args: ["--all-targets", "--", "-D", "warnings"]
- # Local hook with pinned version - lychee's script hook uses system install if present
- - repo: local
+ - repo: https://github.com/lycheeverse/lychee
+ rev: lychee-v0.22.0
hooks:
# Fast PR mode - only check worktrunk domains (internal links validated by zola check)
- id: lychee
name: lychee (PR mode)
- language: rust
- entry: lychee --no-progress --config=.config/lychee.toml --include=^https://(github\.com/max-sixty/worktrunk|worktrunk\.dev)
types: [markdown]
- require_serial: true
- additional_dependencies: ["cli:lychee:0.22.0"]
+ args:
+ - --config=.config/lychee.toml
+ - --include=^https://(github\.com/max-sixty/worktrunk|worktrunk\.dev)
# Comprehensive mode - check all links with full config
# Run manually: pre-commit run --hook-stage manual lychee-all --all-files
- - id: lychee-all
+ - id: lychee
name: lychee-all (comprehensive)
- language: rust
- entry: lychee --no-progress --config=.config/lychee.toml
types: [markdown]
stages: [manual]
- require_serial: true
- additional_dependencies: ["cli:lychee:0.22.0"]
+ args:
+ - --config=.config/lychee.toml
- repo: local
hooks:
- id: no-dbg
@@ -67,5 +64,5 @@ repos:
ci:
# pre-commit.ci doesn't have Rust toolchain, so skip Rust-specific hooks.
# Network access also isn't supported, so skip lychee.
- skip: [fmt, clippy, lychee, lychee-all]
+ skip: [fmt, clippy, lychee]
autoupdate_commit_msg: "chore: pre-commit autoupdate"