-
Notifications
You must be signed in to change notification settings - Fork 69
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 #106
base: master
Are you sure you want to change the base?
Conversation
scripts/mypy.sh
Outdated
# tools/mypy.sh [--version] | ||
|
||
mypy_files=$(find bluefog examples test -name "*.py") | ||
mypy --config-file=./scripts/.mypy.ini "$@" ${mypy_files} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: new line
scripts/.mypy.ini
Outdated
|
||
[mypy-matplotlib.*,networkx.*,pytest.*,numpy.*] | ||
follow_imports = silent | ||
ignore_missing_imports = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: new line at end of file
scripts/.mypy.ini
Outdated
@@ -0,0 +1,5 @@ | |||
[mypy] | |||
|
|||
[mypy-matplotlib.*,networkx.*,pytest.*,numpy.*] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on my understanding, I think we can add more common libraries to .mypy.ini
[mypy-matplotlib.,networkx.,pytest.,numpy.,tensorflow.,torch.,psutil.*]
follow_imports = silent
ignore_missing_imports = true
No description provided.