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

Implement Internal Block Diagrams (Sourcery refactored) #338

Merged
merged 1 commit into from Jun 2, 2020

Conversation

sourcery-ai[bot]
Copy link
Contributor

@sourcery-ai sourcery-ai bot commented Jun 2, 2020

Pull Request #332 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 feature/internal-block branch, then run:

git fetch origin sourcery/feature/internal-block
git merge --ff-only FETCH_HEAD
git reset HEAD^

@sourcery-ai sourcery-ai bot force-pushed the sourcery/feature/internal-block branch from 5790b3e to 9536798 Compare June 2, 2020 02:15
assert 0 == len(factory.lselect()), factory.lselect()
assert len(factory.lselect()) == 0, factory.lselect()
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 test_operation_parameter_deletion refactored with the following changes:

  • Ensure constant in comparison is on the right

Comment on lines -264 to +265
tool = TransactionalToolChain(self.event_manager)
if self.view:
tool = TransactionalToolChain(self.event_manager)
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 DiagramPage.select_tool refactored with the following changes:

  • Move assignments closer to their usage

if value == Gtk.ResponseType.YES:
return True
return False
return value == Gtk.ResponseType.YES
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 DiagramPage.confirm_deletion_of_items refactored with the following changes:

  • Simplify conditional into return statement

@danyeaw danyeaw merged commit e32e8a9 into feature/internal-block Jun 2, 2020
@danyeaw danyeaw deleted the sourcery/feature/internal-block branch June 2, 2020 02:17
@danyeaw danyeaw added the chore Maintenance related PR label Jul 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Maintenance related PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants