-
Hello, I was wondering if it would make sense to have lychee available with pre-commit. I would likely use it this way rather than with the Github Actions integration. Cheers, Thomas |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey @KelSolaar, From what I can see, here are the necessary steps:
If you have the time, feel free to look into it. I'd be happy to merge the final Since this is technically not an issue with lychee, I will move the issue to GitHub discussions for the moment to keep the issue tracker clean. |
Beta Was this translation helpful? Give feedback.
-
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 I turned to So, I've come to a entry: lycheeverse/lychee:0.14
language: docker_image This would fetch the public lychee docker image & use it for subsequent pre-commit runs. I'll create a pull request (here) with this & an update to the readme, so that I can get some feedback. With the Note that this solution would require updating that |
Beta Was this translation helpful? Give feedback.
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
withlanguage: rust
(docs) complains about finding a virtual manifest rather than a package manifest at root-level - seeing as Lychee's root-levelCargo.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…