-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pre-commit → error: found a virtual manifest at .../Cargo.toml
instead of a package manifest
#197
Comments
hi @34j does pre-commit works on your side recently? |
It seems that pre-commit could not specify binaries in a workspace. It requires |
seems that pre-commit doesn't think it's a bug. Any idea how to fix this? |
As noted in the above issue, using Docker would be a workaround. Building and uploading Docker image to Docker Hub instead of just providing Dockerfile might be nicer in that users need not to build images locally (automatically) but is quite tedious. It would depend on your choice. (Unfortunately I cannot work with this right now due to personal issues sorry |
Could we write a custom pre-commit-hook instead of using a rust preset? Just like ruff. |
In my understanding pre-commit-ruff uses prebuilt binaries available on PyPI but does that apply to this project |
For end users, this can be fixed by specifying - repo: local
hooks:
- id: typstyle
name: typstyle
description: Format files with typstyle
entry: typstyle
language: rust
types: [file]
additional_dependencies: ["cli:typstyle:0.12.14"]
files: \.typ$
args: [-i] |
Using
typstyle
inpre-commit
configured with:I got this error:
The text was updated successfully, but these errors were encountered: