jeffwright13 / pytest-fold

A Pytest plugin to make console output more manageable when there are multiple failed tests
MIT License
12 stars 2 forks source link

Issue33 #36

Closed jeffwright13 closed 2 years ago

sourcery-ai[bot] commented 2 years ago

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 13.01 🙂 12.52 🙂 -0.49 👍
Method Length 58.05 ⭐ 59.37 ⭐ 1.32 👎
Working memory 7.62 🙂 8.26 🙂 0.64 👎
Quality 63.02% 🙂 62.59% 🙂 -0.43% 👎
Other metrics Before After Change
Lines 385 307 -78
Changed files Quality Before Quality After Quality Change
setup.py 85.51% ⭐ 92.22% ⭐ 6.71% 👍
pytest_fold/plugin.py 52.32% 🙂 50.15% 🙂 -2.17% 👎
pytest_fold/tuit.py 80.48% ⭐ 80.02% ⭐ -0.46% 👎

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

File Function Complexity Length Working Memory Quality Recommendation
pytest_fold/plugin.py pytest_configure 42 ⛔ 250 ⛔ 13 😞 21.71% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
pytest_fold/plugin.py pytest_configure.tee_write 9 🙂 198 😞 10 😞 49.77% 😞 Try splitting into smaller methods. Extract out complex expressions
pytest_fold/tuit.py PytestFoldApp.on_mount 7 ⭐ 163 😞 8 🙂 58.97% 🙂 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!