Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix: fix sentry tests #742

Merged
merged 1 commit into from
Oct 5, 2022
Merged

bugfix: fix sentry tests #742

merged 1 commit into from
Oct 5, 2022

Conversation

Czaki
Copy link
Collaborator

@Czaki Czaki commented Oct 5, 2022

No description provided.

@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Oct 5, 2022

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 1.25 ⭐ 1.24 ⭐ -0.01 👍
Method Length 84.64 🙂 85.27 🙂 0.63 👎
Working memory 4.39 ⭐ 4.39 ⭐ 0.00
Quality 72.44% 🙂 72.57% 🙂 0.13% 👍
Other metrics Before After Change
Lines 136 138 2
Changed files Quality Before Quality After Quality Change
package/tests/test_PartSeg/test_sentry.py 72.44% 🙂 72.57% 🙂 0.13% 👍

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

File Function Complexity Length Working Memory Quality Recommendation
package/tests/test_PartSeg/test_sentry.py test_sentry_variables_clip 4 ⭐ 166 😞 12 😞 53.70% 🙂 Try splitting into smaller methods. Extract out complex expressions
package/tests/test_PartSeg/test_sentry.py test_numpy_array_serialize 0 ⭐ 93 🙂 13 😞 64.78% 🙂 Extract out complex expressions
package/tests/test_PartSeg/test_sentry.py test_sentry_report_no_clip 1 ⭐ 138 😞 70.26% 🙂 Try splitting into smaller methods
package/tests/test_PartSeg/test_sentry.py test_sentry_report 1 ⭐ 121 😞 73.29% 🙂 Try splitting into smaller methods
package/tests/test_PartSeg/test_sentry.py test_exception_pass 0 ⭐ 125 😞 74.05% 🙂 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!

@codecov
Copy link

codecov bot commented Oct 5, 2022

Codecov Report

Base: 88.58% // Head: 88.57% // Decreases project coverage by -0.01% ⚠️

Coverage data is based on head (f795fd8) compared to base (de58c31).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #742      +/-   ##
===========================================
- Coverage    88.58%   88.57%   -0.02%     
===========================================
  Files          190      189       -1     
  Lines        29344    29213     -131     
===========================================
- Hits         25994    25875     -119     
+ Misses        3350     3338      -12     
Impacted Files Coverage Δ
package/tests/test_PartSeg/test_sentry.py 100.00% <100.00%> (ø)
package/tests/conftest.py

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@deprecated-napari-hub-preview-bot

Preview page for your plugin is ready here:
https://preview.napari-hub.org/4DNucleome/PartSeg/742
Created: 2022-10-05T14:58:29.449441

@Czaki Czaki merged commit 609c542 into develop Oct 5, 2022
@Czaki Czaki deleted the bugfix/sentry_test_fix branch October 5, 2022 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant