Skip to content

Fix flake8 issues on asv/commands/run.py#1082

Merged
datapythonista merged 9 commits intoairspeed-velocity:masterfrom
LucyJimenez:issue1065_part4
Mar 3, 2022
Merged

Fix flake8 issues on asv/commands/run.py#1082
datapythonista merged 9 commits intoairspeed-velocity:masterfrom
LucyJimenez:issue1065_part4

Conversation

@LucyJimenez
Copy link
Contributor

@LucyJimenez LucyJimenez commented Mar 2, 2022

Closes #1065

Clean out the run.py files to follow Flake8 standards on the asv/commands folder.

if range_spec is None:
try:
commit_hashes = list(set([repo.get_hash_from_name(branch) for branch in conf.branches]))
commit_hashes = list(set([(repo.get_hash_from_name(branch) for
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are adding a parenthesis after the squared bracket. That is changing the code, instead of the comprehension returning a list of the iterated items, this is returning a list with a single value which is a generator. This is why tests are failing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the explanation. I'm going to fix it!

@datapythonista
Copy link
Member

The CI problem is unrelated to your changes. We should create an issue, and mention that this happens sometimes (seems like the conda servers are not very reliable, something that it's probably going to fix itself, but better to have an issue, in case something can be done in our end).

Then, we've got these files excluded from flake8 validation in the CI. We should stop excluding them if you are fixing their errors, so we see this is working as expected, and no more style errors can be introduced to those files in future PRs.

@datapythonista datapythonista merged commit 035b3fb into airspeed-velocity:master Mar 3, 2022
@datapythonista
Copy link
Member

Thanks @LucyJimenez, very 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.

Fix flake8 violations for all files in the asv/commands/ directory

2 participants