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

Plank data plot (Sourcery refactored) #89

Closed
wants to merge 1 commit into from
Closed

Conversation

sourcery-ai[bot]
Copy link
Contributor

@sourcery-ai sourcery-ai bot commented Jan 17, 2023

Pull Request #88 refactored by Sourcery.

If you're happy with these changes, merge this Pull Request using the Squash and merge strategy.

NOTE: As code is pushed to the original Pull Request, Sourcery will
re-run and update (force-push) this Pull Request with new refactorings as
necessary. If Sourcery finds no refactorings at any point, this Pull Request
will be closed automatically.

See our documentation here.

Run Sourcery locally

Reduce the feedback loop during development by using the Sourcery editor plugin:

Review changes via command line

To manually merge these changes, make sure you're on the plank branch, then run:

git fetch origin sourcery/plank
git merge --ff-only FETCH_HEAD
git reset HEAD^

Help us improve this pull request!

@sourcery-ai
Copy link
Contributor Author

sourcery-ai bot commented Jan 17, 2023

Sourcery Code Quality Report

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

Quality metrics Before After Change
Complexity 5.26 ⭐ 5.39 ⭐ 0.13 👎
Method Length 81.10 🙂 80.40 🙂 -0.70 👍
Working memory 6.91 🙂 6.98 🙂 0.07 👎
Quality 71.56% 🙂 71.03% 🙂 -0.53% 👎
Other metrics Before After Change
Lines 195 197 2
Changed files Quality Before Quality After Quality Change
thesis_plots/main.py 71.56% 🙂 71.03% 🙂 -0.53% 👎

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

File Function Complexity Length Working Memory Quality Recommendation
thesis_plots/main.py print_versions 6 ⭐ 148 😞 9 🙂 59.26% 🙂 Try splitting into smaller methods
thesis_plots/main.py setup_plt 2 ⭐ 133 😞 6 ⭐ 71.90% 🙂 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!

Comment on lines -204 to +214
options = dict(
bbox_to_anchor=(0., 1.02, 1, .32),
loc=3,
ncol=3,
mode="expand",
borderaxespad=0.,
frameon=True)
options.update(kw)
return options
return (
dict(
bbox_to_anchor=(0.0, 1.02, 1, 0.32),
loc=3,
ncol=3,
mode="expand",
borderaxespad=0.0,
frameon=True,
)
| kw
)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function legend_kw refactored with the following changes:

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.

None yet

1 participant