-
Notifications
You must be signed in to change notification settings - Fork 22
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 install hook doesn't actually install Pyright #225
Comments
Are you just looking to trigger an install without typechecking? Does #178 help? |
Yes, but unfortunately that doesn't help because if you run As far as I understand it, behind the scenes |
i raised #231 which would solve this problem |
Your comment inspired me, and I found a workaround.
|
i've created a fork of pyright that fixes this issue: https://github.com/detachhead/basedpyright it includes all of the node dependencies as part of the pypi package, so it doesn't need to install anything on its initial run. # .pre-commit-config.yaml
repos:
- repo: https://github.com/DetachHead/basedpyright
rev: v1.8.0
hooks:
- id: basedpyright |
Pyright is only actually installed on the first use. This makes installing Pyright in a docker image so you avoid re-downloading it for every CI run (and depending on unreliable networks / github servers) difficult.
Here's what we have to do currently:
It's a mild annoyance. (Also slightly annoying that pre-commit forces you to make a git repo to install things.)
The text was updated successfully, but these errors were encountered: