-
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 flake8 issues on asv/commands folder #1078
Fix flake8 issues on asv/commands folder #1078
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.
Some tests are failing too.
asv/commands/check.py
Outdated
@@ -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 |
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.
What's the idea here?
asv/commands/find.py
Outdated
@@ -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," |
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.
There is a missing space after the comma
asv/commands/profiling.py
Outdated
@@ -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," |
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, missing space
asv/commands/run.py
Outdated
@@ -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" |
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.
missing space
I will split this PR into small tasks to easily review the errors. |
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 for the clean up
xref #1065
Clean out all the files to follow Flake8 standards on the asv/commands folder.