Skip to content

Pre-Commit Hook #1360

Closed Answered by MattTimms
KelSolaar asked this question in General
Discussion options

You must be logged in to vote

Hi all,

I too have been interested in adding pre-commit support to lychee, so that I can check links on my site.

I looked into the instructions from pre-commit's new hooks docs, however a .pre-commit-hooks.yaml with language: rust (docs) complains about finding a virtual manifest rather than a package manifest at root-level - seeing as Lychee's root-level Cargo.toml describes a workspace of packages.

I turned to language: docker (docs) where, after some minor hiccups (#1393 & #1394) I could get it working as expected. However, local docker build takes ~4min first-time on my machine & I bet downloading a prebuilt image at ~40MB compressed is preferably waaay faster.

So, I've come to a .pre…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mre
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1359 on January 26, 2024 14:02.