Closed bdice closed 1 month ago
I encountered the same issue. As a workaround, I created a new repository mirrors-bibtex-tidy which doesn't need to install the development dependencies.
- repo: https://github.com/njzjz/mirrors-bibtex-tidy
rev: v1.11.0
hooks:
- id: bibtex-tidy
I can transfer it to the author of bibtex-tidy if the author would like to maintain it.
Thanks @njzjz. A PR for this would be most welcome.
Fixed in v1.14.0 (kind of)
It's not possible to disable installing dev dependencies when using language:node
, that's a limitation of pre-commit. I've instead changed pre-commit to use language:script. This won't do any npm install, but it also depends on node being installed on the user's system. Seems like an acceptable limitation for now, as it's easier to install node than workaround the problem originally reported here.
Closing this as fixed.
I would like to use this repository's pre-commit hooks with pre-commit.ci. However, it looks like this is not possible because the development dependencies include puppeteer which installs Chromium (if I'm reading this correctly). Here is the log. https://results.pre-commit.ci/run/github/168426142/1711990670.ELxuaVPpR1CviNOJqJh8Kw
This behavior broke between v1.8.5 → v1.11.0.