hikariatama / Hikka

The most fresh and updateable developer-oriented Telegram userbot
https://hikka.pw
GNU Affero General Public License v3.0
318 stars 516 forks source link

Release Heroku support #41

Closed hikariatama closed 2 years ago

hikariatama commented 2 years ago

That's it, no description. Just adequate Heroku support

sourcery-ai[bot] commented 2 years ago

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 15.20 🙂 14.96 🙂 -0.24 👍
Method Length 76.27 🙂 75.98 🙂 -0.29 👍
Working memory 9.72 🙂 9.66 🙂 -0.06 👍
Quality 58.46% 🙂 58.73% 🙂 0.27% 👍
Other metrics Before After Change
Lines 4753 4859 106
Changed files Quality Before Quality After Quality Change
hikka/database.py 72.56% 🙂 72.30% 🙂 -0.26% 👎
hikka/loader.py 58.79% 🙂 58.47% 🙂 -0.32% 👎
hikka/main.py 71.91% 🙂 70.82% 🙂 -1.09% 👎
hikka/utils.py 60.07% 🙂 60.69% 🙂 0.62% 👍
hikka/modules/hikka_backup.py 67.54% 🙂 66.79% 🙂 -0.75% 👎
hikka/modules/loader.py 42.93% 😞 42.85% 😞 -0.08% 👎
hikka/modules/python.py 80.89% ⭐ 82.32% ⭐ 1.43% 👍
hikka/modules/test.py 42.44% 😞 43.92% 😞 1.48% 👍
hikka/modules/updater.py 63.20% 🙂 62.65% 🙂 -0.55% 👎
hikka/web/root.py 56.10% 🙂 56.39% 🙂 0.29% 👍

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

File Function Complexity Length Working Memory Quality Recommendation
hikka/modules/loader.py LoaderMod.load_module 99 ⛔ 1051 ⛔ 21 ⛔ 3.72% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
hikka/modules/test.py TestMod.logscmd 40 ⛔ 560 ⛔ 15 😞 14.34% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
hikka/utils.py answer 43 ⛔ 327 ⛔ 14 😞 17.17% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
hikka/loader.py Modules.unload_module 32 😞 258 ⛔ 15 😞 22.20% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
hikka/utils.py smart_split 22 😞 340 ⛔ 15 😞 24.95% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. 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!