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

Upgrade version of mypy #355

Merged
merged 4 commits into from
Dec 18, 2019
Merged

Upgrade version of mypy #355

merged 4 commits into from
Dec 18, 2019

Conversation

zzz4zzz
Copy link
Contributor

@zzz4zzz zzz4zzz commented Dec 15, 2019

  • Upgrade version of mypy
  • Fix typing errors

@codecov-io
Copy link

codecov-io commented Dec 15, 2019

Codecov Report

Merging #355 into master will increase coverage by <.01%.
The diff coverage is 99.16%.

@@            Coverage Diff             @@
##           master     #355      +/-   ##
==========================================
+ Coverage   97.32%   97.32%   +<.01%     
==========================================
  Files          49       49              
  Lines        3137     3138       +1     
  Branches      584      584              
==========================================
+ Hits         3053     3054       +1     
  Misses         44       44              
  Partials       40       40
Impacted Files Coverage Δ
eli5/_graphviz.py 100% <100%> (ø) ⬆️
eli5/formatters/as_dict.py 95.83% <100%> (ø) ⬆️
eli5/base_utils.py 100% <100%> (ø) ⬆️
eli5/formatters/trees.py 100% <100%> (ø) ⬆️
eli5/sklearn_crfsuite/explain_weights.py 100% <100%> (ø) ⬆️
eli5/sklearn/unhashing.py 96.95% <100%> (ø) ⬆️
eli5/xgboost.py 99.39% <100%> (ø) ⬆️
eli5/formatters/html.py 100% <100%> (ø) ⬆️
eli5/utils.py 98.79% <100%> (ø) ⬆️
eli5/formatters/text_helpers.py 94.28% <100%> (ø) ⬆️
... and 26 more

Copy link
Contributor

@lopuhin lopuhin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @zzz4zzz , that's a nice upgrade to have. PR looks good to merge as-is, but maybe there are some improvements possible, could you please check the comments?

eli5/keras/gradcam.py Show resolved Hide resolved
eli5/formatters/utils.py Outdated Show resolved Hide resolved
eli5/formatters/text.py Outdated Show resolved Hide resolved
@zzz4zzz
Copy link
Contributor Author

zzz4zzz commented Dec 16, 2019

@lopuhin I've checked your comments and made fixes. Additionaly I've added --ignore-missing-imports to mypy command line and cleaned up imports.

@zzz4zzz zzz4zzz requested a review from lopuhin December 17, 2019 09:07
@lopuhin
Copy link
Contributor

lopuhin commented Dec 17, 2019

Thanks @zzz4zzz , and --ignore-missing-imports is also a welcome addition. I'll check PR in more detail later today or tomorrow.

Copy link

@Gallaecio Gallaecio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good. However, after reading about the missing imports command-line option in https://mypy.readthedocs.io/en/latest/running_mypy.html#missing-imports I think we should consider silencing on a library-by-library basis.

Copy link
Contributor

@lopuhin lopuhin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks @zzz4zzz

However, after reading about the missing imports command-line option in https://mypy.readthedocs.io/en/latest/running_mypy.html#missing-imports I think we should consider silencing on a library-by-library basis.

@Gallaecio good point, white-listing libraries looks like a good improvement to me 👍 But I'm also fine with merging this PR as-is, and leaving this improvement for future PRs.

@lopuhin lopuhin merged commit 4839d19 into TeamHG-Memex:master Dec 18, 2019
@lopuhin
Copy link
Contributor

lopuhin commented Dec 18, 2019

Thanks for review @Gallaecio 👍

@zzz4zzz zzz4zzz deleted the mypy_version_upgrade branch December 18, 2019 08:46
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.

4 participants