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

Skip to content

Conversation

@Anselmoo
Copy link
Owner

@Anselmoo Anselmoo commented Nov 24, 2022

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:


  • Does your submission pass tests?
  • Have you lint your code locally prior to submission? Fixed:
  • This PR is for a new feature, not a bug fix.

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 Nov 24, 2022

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 10.60 🙂 10.05 🙂 -0.55 👍
Method Length 51.97 ⭐ 53.38 ⭐ 1.41 👎
Working memory 7.77 🙂 7.57 🙂 -0.20 👍
Quality 66.23% 🙂 67.35% 🙂 1.12% 👍
Other metrics Before After Change
Lines 423 464 41
Changed files Quality Before Quality After Quality Change
spectrafit/report.py 65.64% 🙂 65.60% 🙂 -0.04% 👎
spectrafit/test/test_report.py 89.65% ⭐ 88.57% ⭐ -1.08% 👎

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 31 😞 340 ⛔ 14 😞 21.14% ⛔ Refactor to reduce nesting. 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

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 Nov 24, 2022
@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

@codecov
Copy link

codecov bot commented Nov 24, 2022

Codecov Report

Merging #500 (54b4b48) into main (937aef7) will increase coverage by 0.05%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #500      +/-   ##
==========================================
+ Coverage   98.81%   98.86%   +0.05%     
==========================================
  Files          27       27              
  Lines        2431     2444      +13     
==========================================
+ Hits         2402     2416      +14     
+ Misses         29       28       -1     
Impacted Files Coverage Δ
spectrafit/report.py 94.67% <100.00%> (+0.49%) ⬆️
spectrafit/test/test_report.py 100.00% <100.00%> (ø)

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

@Anselmoo Anselmoo merged commit d294a8a into main Nov 24, 2022
@Anselmoo Anselmoo deleted the develop branch November 24, 2022 18:00
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.

1 participant