Closed sourcery-ai[bot] closed 2 years ago
β Merging this PR will increase code quality in the affected files by 0.97%.
Quality metrics | Before | After | Change |
---|---|---|---|
Complexity | 21.21 π | 19.17 π | -2.04 π |
Method Length | 99.78 π | 99.67 π | -0.11 π |
Working memory | 12.72 π | 12.69 π | -0.03 π |
Quality | 41.42% π | 42.39% π | 0.97% π |
Other metrics | Before | After | Change |
---|---|---|---|
Lines | 201 | 203 | 2 |
Changed files | Quality Before | Quality After | Quality Change |
---|---|---|---|
nlp_articles/app/nlp.py | 12.68% β | 14.23% β | 1.55% π |
scrappers/parse_rss_cli.py | 68.62% π | 68.65% π | 0.03% π |
Here are some functions in these files that still need a tune-up:
File | Function | Complexity | Length | Working Memory | Quality | Recommendation |
---|---|---|---|---|---|---|
nlp_articles/app/nlp.py | init_nlp | 33 β | 480 β | 18 β | 14.23% β | Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions |
scrappers/parse_rss_cli.py | iterate_cnbc_feed | 8 β | 122 π | 10 π | 58.28% π | Try splitting into smaller methods. Extract out complex expressions |
scrappers/parse_rss_cli.py | main | 9 π | 138 π | 8 π | 59.72% π | Try splitting into smaller methods |
The 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!
Merging #16 (6913836) into bugfix/stock-scan-logic (56e1ffd) will decrease coverage by
0.08%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## bugfix/stock-scan-logic #16 +/- ##
===========================================================
- Coverage 74.56% 74.47% -0.09%
===========================================================
Files 9 9
Lines 287 286 -1
===========================================================
- Hits 214 213 -1
Misses 73 73
Flag | Coverage Ξ | |
---|---|---|
ga_ci | 74.47% <100.00%> (-0.09%) |
:arrow_down: |
Flags with carried forward coverage won't be shown. Click here to find out more.
Impacted Files | Coverage Ξ | |
---|---|---|
nlp_articles/app/nlp.py | 100.00% <100.00%> (ΓΈ) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Ξ = absolute <relative> (impact)
,ΓΈ = not affected
,? = missing data
Powered by Codecov. Last update 56e1ffd...6913836. Read the comment docs.
Pull Request #15 refactored by Sourcery.
If you're happy with these changes, merge this Pull Request using the Squash and merge strategy.
NOTE: As code is pushed to the original Pull Request, Sourcery will re-run and update (force-push) this Pull Request with new refactorings as necessary. If Sourcery finds no refactorings at any point, this Pull Request will be closed automatically.
See our documentation here.
Run Sourcery locally
Reduce the feedback loop during development by using the Sourcery editor plugin:
Review changes via command line
To manually merge these changes, make sure you're on the
bugfix/stock-scan-logic
branch, then run:Help us improve this pull request!