a-luna / vigorish

MLB data web scraper, Python CLI application
https://aaronluna.dev/projects/vigorish
MIT License
2 stars 2 forks source link

emit more data-rich events during scrape #871

Closed a-luna closed 2 years ago

sourcery-ai[bot] commented 2 years ago

Sourcery Code Quality Report

✅  Merging this PR will increase code quality in the affected files by 0.14%.

Quality metrics Before After Change
Complexity 4.18 ⭐ 4.12 ⭐ -0.06 👍
Method Length 37.49 ⭐ 37.30 ⭐ -0.19 👍
Working memory 6.18 ⭐ 6.20 🙂 0.02 👎
Quality 79.26% 79.40% 0.14% 👍
Other metrics Before After Change
Lines 417 436 19
Changed files Quality Before Quality After Quality Change
src/vigorish/scrape/job_runner.py 79.23% ⭐ 79.11% ⭐ -0.12% 👎
src/vigorish/scrape/scrape_task.py 74.91% 🙂 75.37% ⭐ 0.46% 👍
src/vigorish/scrape/url_details.py 95.43% ⭐ 94.70% ⭐ -0.73% 👎
src/vigorish/scrape/bbref_games_for_date/scrape_task.py 91.72% ⭐ 89.83% ⭐ -1.89% 👎

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

File Function Complexity Length Working Memory Quality Recommendation
src/vigorish/scrape/scrape_task.py ScrapeTaskABC.parse_scraped_html 20 😞 106 🙂 8 🙂 54.56% 🙂 Refactor to reduce nesting
src/vigorish/scrape/job_runner.py JobRunner.show_status_report 3 ⭐ 67 🙂 11 😞 68.93% 🙂 Extract out complex expressions
src/vigorish/scrape/job_runner.py JobRunner.update_spinner 0 ⭐ 61 ⭐ 11 😞 72.85% 🙂 Extract out complex expressions

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!