rbanffy / pip-chill

A more relaxed `pip freeze`
Other
555 stars 25 forks source link

Added a --no-chill option #36

Closed rbanffy closed 3 years ago

rbanffy commented 3 years ago

People have asked, so it's now here.

sourcery-ai[bot] commented 3 years ago

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 4.34 ⭐ 4.56 ⭐ 0.22 👎
Method Length 31.30 ⭐ 32.10 ⭐ 0.80 👎
Working memory 6.42 🙂 6.43 🙂 0.01 👎
Quality 80.58% 79.96% -0.62% 👎
Other metrics Before After Change
Lines 256 273 17
Changed files Quality Before Quality After Quality Change
pip_chill/cli.py 67.06% 🙂 65.16% 🙂 -1.90% 👎
pip_chill/pip_chill.py 71.43% 🙂 69.67% 🙂 -1.76% 👎
tests/test_pip_chill.py 87.43% ⭐ 87.48% ⭐ 0.05% 👍

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

File Function Complexity Length Working Memory Quality Recommendation
pip_chill/pip_chill.py chill 22 😞 138 😞 8 🙂 49.23% 😞 Refactor to reduce nesting. Try splitting into smaller methods
tests/test_pip_chill.py TestPip_chill.test_pip_ommitted.test_all.test_hashes.test_command_line_interface_omits_ignored 1 ⭐ 52 ⭐ 10 😞 75.17% ⭐ 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!

Let us know what you think of it by mentioning @sourcery-ai in a comment.