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

Skip to content

Conversation

@Anselmoo
Copy link
Owner

@Anselmoo Anselmoo commented Mar 4, 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:


  • 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 Mar 4, 2023

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 2.21 ⭐ 2.22 ⭐ 0.01 👎
Method Length 59.59 ⭐ 59.24 ⭐ -0.35 👍
Working memory 6.40 🙂 6.41 🙂 0.01 👎
Quality 78.58% 78.60% 0.02% 👍
Other metrics Before After Change
Lines 627 626 -1
Changed files Quality Before Quality After Quality Change
spectrafit/__init__.py 100.00% ⭐ 100.00% ⭐ 0.00%
spectrafit/tools.py 78.43% ⭐ 78.45% ⭐ 0.02% 👍

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

File Function Complexity Length Working Memory Quality Recommendation
spectrafit/tools.py PostProcessing.make_residual_fit 4 ⭐ 150 😞 11 😞 57.04% 🙂 Try splitting into smaller methods. Extract out complex expressions
spectrafit/tools.py PreProcessing.__call__ 6 ⭐ 145 😞 6 ⭐ 66.61% 🙂 Try splitting into smaller methods
spectrafit/tools.py PostProcessing.rename_columns 3 ⭐ 77 🙂 11 😞 67.41% 🙂 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 dependencies Pull requests that update a dependency file maintenance Maintenance & Security python Pull requests that update Python code labels Mar 4, 2023
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 4, 2023

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 merged commit 6c550a1 into main Mar 4, 2023
@Anselmoo Anselmoo deleted the hotfix/print branch March 4, 2023 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file maintenance Maintenance & Security python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant