Repository navigation
Use pygeoif 1.0 - #136
Use pygeoif 1.0#136
Conversation
|
Hello @MrNaif2018! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2021-10-13 20:53:41 UTC |
Yes please remove shapely for now. Can you try making the version classifier in setup.py |
|
BTW, can you run teyit (needs python 3.9) against the tests, there are some optimizations that can be made. |
660810d to
1dbc01a
Compare
Codecov Report
@@ Coverage Diff @@
## python3 #136 +/- ##
===========================================
+ Coverage 97.17% 97.42% +0.24%
===========================================
Files 9 9
Lines 3081 3066 -15
===========================================
- Hits 2994 2987 -7
+ Misses 87 79 -8 |
|
@cleder I have added pygeoif via |
Sourcery Code Quality Report✅ Merging this PR will increase code quality in the affected files by 0.26%.
Here are some functions in these files that still need a tune-up:
Legend and ExplanationThe emojis denote the absolute quality of the code:
The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request. Please see our documentation here for details on how these metrics are calculated. We are actively working on this report - lots more documentation and extra metrics to come! Help us improve this quality report! |
Fixes #132
When migrating I was mostly relying on the tests suite which seems to be good enough to indentify things needed to change (from class constructors to class factories mostly)
EDIT: I think pep8 speaks is configured for wrong line length, as
pyproject.tomluses line length of 88I have edited pep8speaks config to use flake8 and configured line length. Unfortunately pep8speaks doesn't read pyproject.toml. If you want I can revert that change
About code quality: I don't think I can do something with that because the changes are minimal and it is not an actual worse quality change
Note that installing pygeoif doesn't work yet because it is in pre-release. You can review and accept this PR and it can wait till the release is done
Note: this doesn't work with shapely well
Many failures are like
AttributeError: type object 'Polygon' has no attribute 'from_linear_rings'Maybe only one provider should be supported? Which is more feature-complete? I see shapely has added bbox to
__geo_interfaceofLineStringand other objects too. Or what should I do? Create compat classes or something like so?