Skip to content

Sourcery refactored master branch#1

Open
sourcery-ai[bot] wants to merge 1 commit intomasterfrom
sourcery/master
Open

Sourcery refactored master branch#1
sourcery-ai[bot] wants to merge 1 commit intomasterfrom
sourcery/master

Conversation

@sourcery-ai
Copy link
Copy Markdown

@sourcery-ai sourcery-ai bot commented Aug 26, 2023

Branch master refactored by Sourcery.

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

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 master branch, then run:

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

Help us improve this pull request!

@sourcery-ai sourcery-ai bot requested a review from izabelacborges August 26, 2023 01:33
Comment on lines -22 to +26
if abs(dx) > abs(dy):
steps = abs(dx)
else:
steps = abs(dy)

steps = max(abs(dx), abs(dy))
x_increment = dx/steps
y_increment = dy/steps

for i in range(steps):
for _ in range(steps):
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 graphics_app.draw_dda refactored with the following changes:

Comment on lines -46 to +48

self.canvas.create_rectangle(x, y, x+1, y+1)

dx = x2 - x1
dy = y2 - y1
x_increment, y_increment = 0, 0

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 graphics_app.draw_bresenham refactored with the following changes:

Comment on lines -104 to +100
y = int(self.y2_value.get())
y = int(self.y2_value.get())
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 graphics_app.draw_circle refactored with the following changes:

  • Replace assignment with augmented assignment [×2] (aug-assign)

Comment on lines -227 to +223
window.geometry('{}x{}'.format(win_width, win_height))
window.geometry(f'{win_width}x{win_height}')
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 graphics_app.__init__ 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.

0 participants