Skip to content
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

Making mypy ignore modules in the current working directory? #14391

Closed
not-my-profile opened this issue Jan 4, 2023 · 1 comment
Closed

Making mypy ignore modules in the current working directory? #14391

not-my-profile opened this issue Jan 4, 2023 · 1 comment

Comments

@not-my-profile
Copy link

not-my-profile commented Jan 4, 2023

I see that there is --no-site-packages but is there also an option to make mypy ignore modules in the current working directory? I tried setting MYPYPATH but to no avail, mypy apparently always falls back to checking the current working directory.

@not-my-profile
Copy link
Author

not-my-profile commented Jan 4, 2023

Ah ok this can be achieved by setting the alt_lib_path argument for the mypy.build.build function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant