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

Fix PEP-8 violations reported by flake8 on asv/util.py #1007

Merged
merged 12 commits into from
Feb 8, 2022

Conversation

LucyJimenez
Copy link
Contributor

@LucyJimenez LucyJimenez commented Feb 2, 2022

@LucyJimenez LucyJimenez marked this pull request as draft February 2, 2022 07:30
Copy link
Member

@datapythonista datapythonista left a 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 Show resolved Hide resolved
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
Copy link
Member

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?

Copy link
Contributor Author

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
Copy link
Member

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):
Copy link
Member

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.

LucyJimenez and others added 2 commits February 2, 2022 08:47
Co-authored-by: Marc Garcia <garcia.marc@gmail.com>
@LucyJimenez LucyJimenez marked this pull request as ready for review February 2, 2022 15:31
Copy link
Member

@datapythonista datapythonista left a 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.

@datapythonista
Copy link
Member

Can you rebase please?

@datapythonista
Copy link
Member

Can you fix the conflicts please?

@datapythonista datapythonista merged commit 389dbed into airspeed-velocity:master Feb 8, 2022
@datapythonista
Copy link
Member

Thanks @LucyJimenez, really nice!

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.

2 participants