Skip to content

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

Merged
datapythonista merged 12 commits intoairspeed-velocity:masterfrom
LucyJimenez:check_flake8_02
Feb 8, 2022
Merged

Fix PEP-8 violations reported by flake8 on asv/util.py#1007
datapythonista merged 12 commits intoairspeed-velocity:masterfrom
LucyJimenez:check_flake8_02

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
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
# 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


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