Skip to content

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

Fix lint CI job to install lychee & remove duplicate hook (#209)

Maximilian Roosd2619d10d5c0
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 6823c2a95..7aebe9b12 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -20,6 +20,11 @@ jobs:
- name: 💰 Cache
uses: Swatinem/rust-cache@v2
+ - name: Install lychee
+ uses: baptiste0928/cargo-install@v3
+ with:
+ crate: lychee
+
- name: 🔍 Pre-commit hooks
uses: pre-commit/[email protected]
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index f56861bb5..5f1d4a1f9 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -29,25 +29,15 @@ repos:
- repo: https://github.com/lycheeverse/lychee
rev: lychee-v0.22.0
hooks:
- # PR mode - check links using .config/lychee.toml exclusions
+ # Check links using .config/lychee.toml exclusions
# Uses lychee-system (requires `cargo install lychee`) to avoid /bin/bash dependency on Windows
- id: lychee-system
- name: lychee (PR mode)
types: [markdown]
args:
- --config=.config/lychee.toml
# Suppress warnings about root-relative paths (e.g., /assets/wt-demo.gif)
# These are valid web paths validated by zola, not lychee
- -q
- # Comprehensive mode - check all links with full config
- # Run manually: pre-commit run --hook-stage manual lychee-all --all-files
- - id: lychee-system
- name: lychee-all (comprehensive)
- types: [markdown]
- stages: [manual]
- args:
- - --config=.config/lychee.toml
- - -q
- repo: local
hooks:
- id: cargo-lock