-
Notifications
You must be signed in to change notification settings - Fork 4
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
Melf/add ruff 2024 #120
Melf/add ruff 2024 #120
Conversation
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.
Is it intended to remove all debug and logging? If we want to get rind of print()
statements entirely then maybe these should use logging instead?
for zone in range(self._arch.n_zones): | ||
changes_str = ", ".join( | ||
", ".join( |
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 string now unused -- delete?
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.
I am not sure why we are deleting all the print()
calls. They are presumably for debugging.
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.
Ruff suggested that we should remove the print / replace it with some special log. I think in our case it is fine to have the prints. I have added them back in.
3c15ed8
to
8ddd083
Compare
1a28515
to
8fffce7
Compare
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.
Perhaps we should make an issue to replace these print()
s with use of logging
.
Description
Please summarise the changes.
Related issues
Please mention any github issues addressed by this PR.
Checklist