SAGIRI-kawaii / sagiri-bot

基于Graia Ariadne和Mirai的QQ机器人 SAGIRI-BOT
GNU Affero General Public License v3.0
696 stars 83 forks source link

:bug: Fixed `self_upgrade` #389

Closed nullqwertyuiop closed 1 year ago

nullqwertyuiop commented 1 year ago

Close #386

sourcery-ai[bot] commented 1 year ago

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 2.92 ⭐ 2.95 ⭐ 0.03 👎
Method Length 44.00 ⭐ 44.62 ⭐ 0.62 👎
Working memory 4.71 ⭐ 4.69 ⭐ -0.02 👍
Quality 81.66% 81.76% 0.10% 👍
Other metrics Before After Change
Lines 99 99 0
Changed files Quality Before Quality After Quality Change
shared/utils/self_upgrade.py 81.66% ⭐ 81.76% ⭐ 0.10% 👍

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

File Function Complexity Length Working Memory Quality Recommendation
shared/utils/self_upgrade.py UpdaterService.check_update 7 ⭐ 171 😞 6 ⭐ 63.02% 🙂 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!