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

Disable third party imports only #17257

Closed
Ryang20718 opened this issue May 17, 2024 · 1 comment
Closed

Disable third party imports only #17257

Ryang20718 opened this issue May 17, 2024 · 1 comment

Comments

@Ryang20718
Copy link

Documentation

Hi, is there a setting to disable all third party import checks but still follow imports on your repo code?

I found this page https://mypy.readthedocs.io/en/stable/running_mypy.html#following-imports, but it wasn't clear to me if there is such an option

@hauntsaninja
Copy link
Collaborator

No, I don't think so. You can always run mypy in a clean virtual environment though.

In general, I don't recommend futzing with follow imports settings. If you're interested in this for performance reasons, usually you can just change follow imports for one or two specific third party packages (using the per-module options in config file)

@hauntsaninja hauntsaninja closed this as not planned Won't fix, can't repro, duplicate, stale May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants