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

Issue20 #24

Closed jeffwright13 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 2.15%.

Quality metrics Before After Change
Complexity 19.69 😞 18.41 😞 -1.28 👍
Method Length 61.67 🙂 60.85 ⭐ -0.82 👍
Working memory 8.40 🙂 8.24 🙂 -0.16 👍
Quality 52.80% 🙂 54.95% 🙂 2.15% 👍
Other metrics Before After Change
Lines 273 287 14
Changed files Quality Before Quality After Quality Change
setup.py 85.55% ⭐ 85.55% ⭐ 0.00%
pytest_fold/plugin.py 51.39% 🙂 53.73% 🙂 2.34% 👍

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 ⛔ 256 ⛔ 11 😞 24.72% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
pytest_fold/plugin.py pytest_configure.tee_write 9 🙂 204 😞 8 🙂 53.59% 🙂 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!