megasanjay / electron-vue3-flask

A simple template for combining Electron with Vue3 and Flask
MIT License
30 stars 2 forks source link

Sourcery refactored main branch #12

Closed sourcery-ai[bot] closed 2 years ago

sourcery-ai[bot] commented 2 years ago

Branch main refactored by Sourcery.

If you're happy with these changes, merge this Pull Request using the Squash and merge strategy.

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 main branch, then run:

git fetch origin sourcery/main
git merge --ff-only FETCH_HEAD
git reset HEAD^

Help us improve this pull request!

sourcery-ai[bot] commented 2 years ago

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 29.91 😞 30.50 😞 0.59 👎
Method Length 48.17 ⭐ 46.75 ⭐ -1.42 👍
Working memory 10.27 😞 9.80 🙂 -0.47 👍
Quality 50.52% 🙂 50.69% 🙂 0.17% 👍
Other metrics Before After Change
Lines 160 157 -3
Changed files Quality Before Quality After Quality Change
src/pyflask/api.py 89.52% ⭐ 89.66% ⭐ 0.14% 👍
src/pyflask/calc.py 41.70% 😞 42.80% 😞 1.10% 👍

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

File Function Complexity Length Working Memory Quality Recommendation
src/pyflask/calc.py calc 56 ⛔ 297 ⛔ 15 😞 14.34% ⛔ 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!