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

feat: Add option to create issue from error report dialog #782

Merged
merged 4 commits into from
Nov 6, 2022

Conversation

Czaki
Copy link
Collaborator

@Czaki Czaki commented Nov 6, 2022

No description provided.

@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Nov 6, 2022

Sourcery Code Quality Report

❌  Merging this PR will decrease code quality in the affected files by 0.17%.

Quality metrics Before After Change
Complexity 1.26 ⭐ 1.27 ⭐ 0.01 👎
Method Length 90.75 🙂 90.73 🙂 -0.02 👍
Working memory 5.97 ⭐ 6.08 ⭐ 0.11 👎
Quality 72.58% 🙂 72.41% 🙂 -0.17% 👎
Other metrics Before After Change
Lines 1685 1730 45
Changed files Quality Before Quality After Quality Change
package/PartSeg/common_gui/error_report.py 51.57% 🙂 51.29% 🙂 -0.28% 👎
package/tests/test_PartSeg/test_common_gui.py 75.51% ⭐ 75.59% ⭐ 0.08% 👍

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

File Function Complexity Length Working Memory Quality Recommendation
package/PartSeg/common_gui/error_report.py ErrorDialog.__init__ 6 ⭐ 445 ⛔ 14 😞 38.03% 😞 Try splitting into smaller methods. Extract out complex expressions
package/PartSeg/common_gui/error_report.py ErrorDialog.send_information 11 🙂 260 ⛔ 10 😞 44.17% 😞 Try splitting into smaller methods. Extract out complex expressions
package/PartSeg/common_gui/error_report.py DataImportErrorDialog.__init__ 15 🙂 306 ⛔ 7 🙂 45.57% 😞 Try splitting into smaller methods
package/tests/test_PartSeg/test_common_gui.py TestMultipleFileWidget.test_load_files 1 ⭐ 272 ⛔ 12 😞 49.63% 😞 Try splitting into smaller methods. Extract out complex expressions
package/tests/test_PartSeg/test_common_gui.py test_p_load_dialog 1 ⭐ 335 ⛔ 9 🙂 53.28% 🙂 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!

@deprecated-napari-hub-preview-bot
Copy link

deprecated-napari-hub-preview-bot bot commented Nov 6, 2022

Preview page for your plugin is ready here:
https://preview.napari-hub.org/4DNucleome/PartSeg/782
Updated: 2022-11-06T17:41:52.974112

@codecov
Copy link

codecov bot commented Nov 6, 2022

Codecov Report

Base: 89.70% // Head: 89.72% // Increases project coverage by +0.01% 🎉

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

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #782      +/-   ##
===========================================
+ Coverage    89.70%   89.72%   +0.01%     
===========================================
  Files          193      193              
  Lines        29844    29880      +36     
===========================================
+ Hits         26772    26809      +37     
+ Misses        3072     3071       -1     
Impacted Files Coverage Δ
package/PartSeg/common_gui/error_report.py 75.75% <100.00%> (+2.27%) ⬆️
package/tests/test_PartSeg/test_common_gui.py 99.83% <100.00%> (+<0.01%) ⬆️
package/PartSeg/_roi_mask/main_window.py 64.89% <0.00%> (ø)
package/tests/test_PartSegCore/test_io.py 100.00% <0.00%> (ø)
package/PartSegCore/mask/io_functions.py 88.65% <0.00%> (+0.31%) ⬆️

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.

@Czaki Czaki added this to the v0.14.5 milestone Nov 6, 2022
@Czaki Czaki changed the title Add option to create issue from error report dialog feat: Add option to create issue from error report dialog Nov 6, 2022
@Czaki Czaki merged commit d783ed9 into develop Nov 6, 2022
@Czaki Czaki deleted the create_issue_from_dialog branch November 6, 2022 18:05
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