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

mypy: Remove follow-imports option from invocation #234

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

djmoch
Copy link

@djmoch djmoch commented Jan 20, 2023

Follow imports is not recommended by the Mypy authors if it can be avoided, but adding it to the invocation forces users down that path. This can lead to unexpected errors trying to use Mypy within pylama.

This commit removes the forced option to skip following imports. Users will see the mypy linter take longer to run in most cases. If that is a problem, they can still configure it not to follow imports in any of the ways the tool supports.

Follow imports is not recommended by the Mypy authors if it can be
avoided[1], but adding it to the invocation forces users down that
path. This can lead to unexpected errors trying to use `mypy` within
pylama.

This commit removes the forced option to skip following imports. Users
will see the `mypy` linter take longer to run in most casees. If that
is a problem, they can still configure it not to follow imports in any
of the ways the tool supports.

[1] - https://mypy.readthedocs.io/en/stable/running_mypy.html#follow-imports
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

Successfully merging this pull request may close these issues.

1 participant