Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Anselmoo
Copy link
Owner

@Anselmoo Anselmoo commented Jan 23, 2023

All PR-Submissions:


  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open
    Pull Requests for the same
    update/change?

New ✨✨ Feature-Submissions:


Changes to ⚙️ Core-Features:


  • Have you added an explanation of what your changes do and why you'd like
    us to include them?
  • Have you written new tests for your core changes, as applicable?
  • Have you successfully run tests with your changes locally?

@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Jan 23, 2023

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 5.77 ⭐ 5.10 ⭐ -0.67 👍
Method Length 61.38 🙂 60.03 ⭐ -1.35 👍
Working memory 7.60 🙂 7.40 🙂 -0.20 👍
Quality 71.58% 🙂 72.98% 🙂 1.40% 👍
Other metrics Before After Change
Lines 1886 1949 63
Changed files Quality Before Quality After Quality Change
spectrafit/report.py 65.93% 🙂 68.49% 🙂 2.56% 👍
spectrafit/spectrafit.py 65.94% 🙂 65.94% 🙂 0.00%
spectrafit/plugins/notebook.py 75.43% ⭐ 75.43% ⭐ 0.00%
spectrafit/test/test_report.py 88.47% ⭐ 90.46% ⭐ 1.99% 👍
spectrafit/utilities/test/test_transformer.py 88.16% ⭐ 87.99% ⭐ -0.17% 👎

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

File Function Complexity Length Working Memory Quality Recommendation
spectrafit/report.py fit_report_as_dict 29 😞 300 ⛔ 14 😞 23.22% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
spectrafit/plugins/notebook.py __init__ 3 ⭐ 358 ⛔ 43 ⛔ 32.44% 😞 Try splitting into smaller methods. Extract out complex expressions
spectrafit/report.py _extracted_gof_from_results 19 😞 213 ⛔ 12 😞 36.66% 😞 Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
spectrafit/plugins/notebook.py solver_model 8 ⭐ 177 😞 14 😞 45.83% 😞 Try splitting into smaller methods. Extract out complex expressions
spectrafit/plugins/notebook.py DataFramePlot.plot_2dataframes 6 ⭐ 424 ⛔ 8 🙂 49.11% 😞 Try splitting into smaller methods

Legend and Explanation

The emojis denote the absolute quality of the code:

  • ⭐ excellent
  • 🙂 good
  • 😞 poor
  • ⛔ very poor

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!

@github-actions github-actions bot added the python Pull requests that update Python code label Jan 23, 2023
@codecov
Copy link

codecov bot commented Jan 23, 2023

Codecov Report

Merging #563 (773db00) into main (79ee7a2) will increase coverage by 0.16%.
The diff coverage is 100.00%.

❗ Current head 773db00 differs from pull request most recent head 1920a8e. Consider uploading reports for the commit 1920a8e to get more accurate results

@@            Coverage Diff             @@
##             main     #563      +/-   ##
==========================================
+ Coverage   99.56%   99.72%   +0.16%     
==========================================
  Files          37       37              
  Lines        3157     3154       -3     
==========================================
+ Hits         3143     3145       +2     
+ Misses         14        9       -5     
Impacted Files Coverage Δ
spectrafit/plugins/notebook.py 100.00% <ø> (+0.31%) ⬆️
spectrafit/spectrafit.py 100.00% <ø> (+3.23%) ⬆️
spectrafit/utilities/test/test_transformer.py 100.00% <100.00%> (ø)
spectrafit/utilities/transformer.py 100.00% <0.00%> (+5.89%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@Anselmoo Anselmoo marked this pull request as ready for review January 23, 2023 21:18
@Anselmoo Anselmoo merged commit 8e9424d into main Jan 23, 2023
@Anselmoo Anselmoo deleted the Anselmoo/issue562 branch January 23, 2023 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Set coverage to 100%

1 participant