Skip to content

Sourcery Starbot ⭐ refactored mixeden/Plotion - #1

Open
SourceryAI wants to merge 1 commit into
mixeden:masterfrom
SourceryAI:master
Open

Sourcery Starbot ⭐ refactored mixeden/Plotion#1
SourceryAI wants to merge 1 commit into
mixeden:masterfrom
SourceryAI:master

Conversation

@SourceryAI

Copy link
Copy Markdown

Thanks for starring sourcery-ai/sourcery ✨ 🌟 ✨

Here's your pull request refactoring your most popular Python repo.

If you want Sourcery to refactor all your Python repos and incoming pull requests install our bot.

Review changes via command line

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

git fetch https://github.com/sourcery-ai-bot/Plotion master
git merge --ff-only FETCH_HEAD
git reset HEAD^


def br_text(text):
return "__" + text + "__"
return f"__{text}__"

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Function br_text refactored with the following changes:

def random_string(string_length=10):
letters = string.ascii_lowercase
return ''.join(random.choice(letters) for i in range(string_length))
return ''.join(random.choice(letters) for _ in range(string_length))

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Function random_string refactored with the following changes:

Comment on lines -122 to +125
filename = "images/" + random_string(15) + ".png"
filename = f"images/{random_string(15)}.png"
plt.savefig(filename)

print("Uploading " + filename)
print(f"Uploading {filename}")

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Function draw_plot refactored with the following changes:


else:
return HttpResponse("Hello, world.")
return HttpResponse("Hello, world.")

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Function index 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.

1 participant