-
Notifications
You must be signed in to change notification settings - Fork 122
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
typos pre-commit hook building from source rather than binary install #682
Comments
Apparently pre-commit hooks are installed by cloning the repo and running So I can simulate this using |
It looks like its using maturin to build the wheels:
I wonder if #675, which switched to the maturin backend instead of setup.py, means setup.py from #289 is now being ignored? |
If I use the version prior, it fetches the binaries and is a lot faster:
|
For reference, Ruff solves this by making a pre-commit mirror: https://github.com/charliermarsh/ruff-pre-commit. |
Huh, that was an unintended side effect of adding PyPI packages. I've been avoiding specialized repos for pre-commit and Github Actions to keep the release process automated within existing tooling. |
I created a mirror at https://github.com/calumy/typos-pre-commit. It can be added to your pre-commit config with the following:
I'm happy to transfer this to @create-ci if that would be preferred. With regards to keeping the release process automated, if I have setup the mirror correctly, it should update automatically. |
However, if #685 fixes this, there is no need for this mirror. |
Can someone confirm that that #685 fixed things? |
I don't think it did, I'm afraid. For pre-commit work for a python package you have to be able to install it with
When running pre-commit with the following config it created a similar error.
|
Suggested a fix in #686. |
In .pre-commit-hooks.yaml I have:
But the install takes 3 mins because it is building from source on x86_64 linux (Ubuntu 22.04).
The text was updated successfully, but these errors were encountered: