-
Notifications
You must be signed in to change notification settings - Fork 145
Integrated ResourceTradeEvent and added test #135
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
Conversation
Also make sure to run |
#!/bin/bash -eo pipefail would reformat /home/circleci/project/sc2reader/events/game.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
self.minerals, self.vespene, self.terrazine, self.custom_resource | ||
return ( | ||
self._str_prefix() | ||
+ " requests {0} minerals, {1} gas, {2} terrazine, and {3} custom".format( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The {0} {1} {2} {3} thing has not been needed since Python 2.6 unless you want substitutions to land out of order or you want substitutions to repeat.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is how it was originally written and how the other classes in this file are written as well. Maybe create a separate issue to change this more broadly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will automate it with https://github.com/asottile/pyupgrade
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good to me
Great fixes and thanks to other for reviewing this! |
For the record, ResourceRequestEvent and ResourceRequestFulfillEvent are also not integrated.