jesrav / footy-tracker

4 stars 1 forks source link

Feature/web/suggest teams #28

Closed jesrav closed 1 year ago

jesrav commented 1 year ago
sourcery-ai[bot] commented 1 year ago

Sourcery Code Quality Report

❌  Merging this PR will decrease code quality in the affected files by 0.38%.

Quality metrics Before After Change
Complexity 1.21 ⭐ 1.25 ⭐ 0.04 👎
Method Length 107.67 🙂 108.78 🙂 1.11 👎
Working memory 5.21 ⭐ 5.33 ⭐ 0.12 👎
Quality 72.27% 🙂 71.89% 🙂 -0.38% 👎
Other metrics Before After Change
Lines 336 337 1
Changed files Quality Before Quality After Quality Change
src/api/services/ml.py 72.27% 🙂 71.89% 🙂 -0.38% 👎

Here are some functions in these files that still need a tune-up:

File Function Complexity Length Working Memory Quality Recommendation
src/api/services/ml.py suggest_most_fair_teams 0 ⭐ 342 ⛔ 53.49% 🙂 Try splitting into smaller methods
src/api/services/ml.py single_prediction_task 2 ⭐ 83 🙂 10 😞 69.42% 🙂 Extract out complex expressions
src/api/services/ml.py get_ml_data 1 ⭐ 149 😞 6 ⭐ 71.11% 🙂 Try splitting into smaller methods

Legend and Explanation

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!