fastkml
fastkml copied to clipboard
Overlays
Hello @cleder! Thanks for updating this PR. We checked the lines you've touched for PEPΒ 8 issues, and found:
There are currently no PEP 8 issues detected in this Pull Request. Cheers! :beers:
Comment last updated at 2021-10-22 19:07:53 UTC
Sourcery Code Quality Report
β Β Merging this PR will decrease code quality in the affected files by 0.37%.
| Quality metrics | Before | After | Change |
|---|---|---|---|
| Complexity | 3.16 β | 3.30 β | 0.14 π |
| Method Length | 64.01 π | 63.95 π | -0.06 π |
| Working memory | 5.70 β | 5.73 β | 0.03 π |
| Quality | 75.84% β | 75.47% β | -0.37% π |
| Other metrics | Before | After | Change |
|---|---|---|---|
| Lines | 4115 | 4445 | 330 |
| Changed files | Quality Before | Quality After | Quality Change |
|---|---|---|---|
| fastkml/kml.py | 70.30% π | 70.26% π | -0.04% π |
| fastkml/tests/kml_test.py | 94.18% β | 85.11% β | -9.07% π |
| fastkml/tests/oldunit_test.py | 80.84% β | 80.58% β | -0.26% π |
Here are some functions in these files that still need a tune-up:
| File | Function | Complexity | Length | Working Memory | Quality | Recommendation |
|---|---|---|---|---|---|---|
| fastkml/kml.py | _Feature.from_element | 22 π | 517 β | 8 π | 35.14% π | Refactor to reduce nesting. Try splitting into smaller methods |
| fastkml/kml.py | _Feature.etree_element | 25 π | 431 β | 7 π | 36.15% π | Refactor to reduce nesting. Try splitting into smaller methods |
| fastkml/kml.py | PhotoOverlay.from_element | 23 π | 324 β | 7 π | 39.18% π | Refactor to reduce nesting. Try splitting into smaller methods |
| fastkml/kml.py | Placemark.from_element | 7 β | 298 β | 9 π | 48.44% π | Try splitting into smaller methods |
| fastkml/kml.py | Camera.etree_element | 8 β | 226 β | 9 π | 50.84% π | Try splitting into smaller methods |
Legend and Explanation
The emojis denote the absolute quality of the code:
- β excellent
- π good
- π poor
- β very poor
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!
π Click on the image for a new way to code review
-
Make big changes easier β review code in small groups of related files
-
Know where to start β see the whole change at a glance
-
Take a code tour β explore the change with an interactive tour
-
Make comments and review β all fully syncβed with github
Legend

Codecov Report
Merging #123 (89403cc) into develop (ffb9a3c) will decrease coverage by
0.38%. The diff coverage is84.65%.
Additional details and impacted files
@@ Coverage Diff @@
## develop #123 +/- ##
===========================================
- Coverage 89.20% 88.82% -0.39%
===========================================
Files 19 19
Lines 4113 4285 +172
===========================================
+ Hits 3669 3806 +137
- Misses 444 479 +35