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 flake8 issues on asv/commands folder #1078

Merged
merged 3 commits into from
Mar 2, 2022

Conversation

LucyJimenez
Copy link
Contributor

xref #1065

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

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.

Some tests are failing too.

@@ -42,4 +40,5 @@ def run(cls, conf, env_spec=None):
commit_hashes = [] # use fallback defaults
benchmarks = Benchmarks.discover(conf, repo, environments, commit_hashes,
check=True)
benchmarks
Copy link
Member

Choose a reason for hiding this comment

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

What's the idea here?

@@ -100,7 +100,8 @@ def run(cls, conf, range_spec, bench, invert=False, show_stderr=False, parallel=
elif len(benchmarks) > 1:
exact_matches = benchmarks.filter_out([x for x in benchmarks if x != bench])
if len(exact_matches) == 1:
log.warning("'{0}' matches more than one benchmark, using exact match".format(bench))
log.warning("'{0}' matches more than one benchmark,"
Copy link
Member

Choose a reason for hiding this comment

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

There is a missing space after the comma

@@ -180,7 +180,8 @@ def run(cls, conf, benchmark, revision=None, gui=None, output=None,
elif len(benchmarks) > 1:
exact_matches = benchmarks.filter_out([x for x in benchmarks if x != benchmark])
if len(exact_matches) == 1:
log.warning("'{0}' matches more than one benchmark, using exact match".format(benchmark))
log.warning("'{0}' matches more than one benchmark,"
Copy link
Member

Choose a reason for hiding this comment

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

same, missing space

@@ -214,8 +214,8 @@ def run(cls, conf, range_spec=None, steps=None, date_period=None,
if dry_run:
raise util.UserError("--interleave-rounds and --dry-run cannot be used together")
if has_existing_env:
raise util.UserError("--interleave-rounds cannot be used with existing environment "
"(or python=same)")
raise util.UserError("--interleave-rounds cannot be used with"
Copy link
Member

Choose a reason for hiding this comment

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

missing space

@LucyJimenez
Copy link
Contributor Author

LucyJimenez commented Mar 2, 2022

I will split this PR into small tasks to easily review the errors.

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 for the clean up

@datapythonista datapythonista merged commit 1b65412 into airspeed-velocity:master Mar 2, 2022
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