-
Notifications
You must be signed in to change notification settings - Fork 181
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
Fix PEP-8 violations reported by flake8 on asv/util.py #1007
Fix PEP-8 violations reported by flake8 on asv/util.py #1007
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.
Looks good, thanks for the fixes. Added couple of comments, but nice contribution.
asv/util.py
Outdated
@@ -566,7 +566,7 @@ def _fix_env(s): | |||
debug_log = DebugLogBuffer(log) | |||
dots = False | |||
else: | |||
debug_log = lambda c: None | |||
debug_log = lambda c: None # noqa |
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.
We shouldn't have bare noqa
, we should always specify the error we want to ignore, and why.
In this case, why we don't fix the error properly?
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.
You are right. I was checking the other changes first, and I'm going to fix them.
asv/util.py
Outdated
@@ -730,7 +729,7 @@ def sig_forward(signum, frame): | |||
|
|||
# Flush and disconnect debug log, if any | |||
debug_log(None) | |||
debug_log = lambda c: None | |||
debug_log = lambda c: None # noqa |
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.
same
asv/util.py
Outdated
@@ -81,28 +81,28 @@ def reraise(self): | |||
raise self | |||
|
|||
|
|||
def human_list(l): | |||
def human_list(non_human_list): |
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 a normal list that wants to be printed in a human readable way. non_human_list
doesn't seem to be a very clear name of what it is, maybe better just input
or input_list
or even list_to_format
.
Co-authored-by: Marc Garcia <garcia.marc@gmail.com>
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.
Thanks @LucyJimenez, looks great.
Can you rebase please? |
Co-authored-by: Marc Garcia <garcia.marc@gmail.com>
…into check_flake8_02
…into check_flake8_02
Can you fix the conflicts please? |
Thanks @LucyJimenez, really nice! |
closes https://github.com/pandas-benchmarks-grant/board-issues/issues/6
Fix pep8 issues on util.py