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

Fix default mypy.ini and update readme #17

Merged
merged 3 commits into from
Aug 19, 2024
Merged

Fix default mypy.ini and update readme #17

merged 3 commits into from
Aug 19, 2024

Conversation

mark-thm
Copy link
Contributor

Issue

Closes #15. We set --follow-imports=silent when we call the CLI, which generally prevents type-checking 3rd party dependencies. When 3rd party dependencies contain typings in .pyi files, we also need to set follow_imports_for_stubs = True.

Summary

Set reasonable defaults in the (mandatory if not otherwise provided) default_mypy.ini file. Update the README to clarify that the contents of mypy.ini should contain some instructions around following imports.

@mark-thm mark-thm requested a review from a team as a code owner August 19, 2024 02:01
@mark-thm mark-thm merged commit 036a06f into main Aug 19, 2024
6 checks passed
@mark-thm mark-thm deleted the me/15 branch August 19, 2024 02:05
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.

Errors from third party packages (e.g. numpy)
1 participant