-
Notifications
You must be signed in to change notification settings - Fork 23
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 won't find my pyrightconfig.json settings #291
Comments
Check that the .git directory is in the root of the project, not at a higher level. Shold be:
|
Has this been solved? I'm getting the same problem where my pyrightconfig.json is not being detected. When I run |
I actually managed to fix it by manually setting my pythonpath parameter like this:
|
At least it finds the one from |
Hello, I've just started using pyright and pre-commit so everything is still new to me and I'm aware the issue is probably because of my inexperience.
My project folder looks like that:
I want pyright to run only on the staged modules that are located at
project/repo2/src/utils/
and nowhere else.My pyrightconfig.json is
My .pre-commit-config.yaml:
If I run
pyright
at the project root, I get what I want. If I runpre-commit run pyright
I don't get the same behavior at all. The verbose arguments aren't even read. The files that are selected are all the ones in the staged, but I want to restrict pyright on the ones atrepo2/src/
onlyI guess my real question is: How do I make
pre-commit run pyright
behave as if I'm runningpyright
in my own conda environment at theproject/
locationThe text was updated successfully, but these errors were encountered: