admin/ship-mypy-type-annotations-drop-py37-add-py310-manage-test-dependencies-separate-for-each-tox-env#397
Conversation
Codecov Report
@@ Coverage Diff @@
## main #397 +/- ##
==========================================
+ Coverage 93.65% 94.52% +0.87%
==========================================
Files 49 45 -4
Lines 3702 3728 +26
==========================================
+ Hits 3467 3524 +57
+ Misses 235 204 -31
Continue to review full report at Codecov.
|
AetherUnbound
left a comment
There was a problem hiding this comment.
Looks good! Just one note on what looks like some debug code.
|
Sorry if I missed this, or forgot, but why can we drop 3.7? its end of life date is still more than 1 year away |
numpy, dask, pandas, scipy, tifffile, have all dropped py37. I am following their cycle. |
Wonder if this PR is the place to add 3.10 |
Yep I am going to do it here and close the other PR |
|
@toloudis @AetherUnbound if possible wanna give this a look over? It's ready!! and Jpype 1.4.0 was released so we can officially ship 3.10 too! |
| f"Received URI: {self._path}, which points to {type(self._fs)}." | ||
| ) | ||
|
|
||
| # Handle deprecated parameter |
toloudis
left a comment
There was a problem hiding this comment.
Not looking forward to mergeing with other outstanding PRs but i like the changes.
Description
Ships type annotations with the library when installed. Now people can define functions based on our types and mypy will correctly resolve them.
This also massively overhauls the testing portions of our library. Extra readers and writers have been moved to their own subdirs in our tests dirs. And each extra reader and writer is tested independently from one another. This is to make it possible to avoid dependency overlap.
Specifically, this relates to how bfio doesn't support and doesn't plan on supporting tifffiles latest releases: PolusAI/bfio#35
However, this somewhat more naturally sets us up better for when we move to a plugin model.
The diff is quite large because of all of these changes but if you look at the codecov, our coverage only minimally changes 🎉
The testing code is now a bit odd imo but something to "not worry about because we actively are trying to make the build 🟢 so we can spend some time prototyping v5"
Pull request recommendations:
Resolves #325
Resolves #373
Thanks for contributing!