sjvrijn / mf2

Collection of Multi-Fidelity benchmark functions
https://mf2.readthedocs.io/
GNU General Public License v3.0
25 stars 7 forks source link

Add warnings #43

Closed sjvrijn closed 2 years ago

sjvrijn commented 2 years ago

closes #40

sourcery-ai[bot] commented 2 years ago

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 1.81 ⭐ 1.33 ⭐ -0.48 👍
Method Length 36.42 ⭐ 37.14 ⭐ 0.72 👎
Working memory 6.11 ⭐ 6.07 ⭐ -0.04 👍
Quality 83.07% 84.08% 1.01% 👍
Other metrics Before After Change
Lines 281 312 31
Changed files Quality Before Quality After Quality Change
mf2/multiFidelityFunction.py 74.51% 🙂 78.35% ⭐ 3.84% 👍
tests/multiFidelityFunction_test.py 87.55% ⭐ 87.88% ⭐ 0.33% 👍
tests/property_test.py 85.95% ⭐ 85.95% ⭐ 0.00%

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

File Function Complexity Length Working Memory Quality Recommendation
mf2/multiFidelityFunction.py MultiFidelityFunction.__init__ 6 ⭐ 104 🙂 11 😞 60.63% 🙂 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!