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

CLN:fix flake8 errors in test/test_publish.py #1153

Merged
merged 2 commits into from
Mar 15, 2022

Conversation

dorothykiz1
Copy link
Contributor

xref #1042

@@ -305,11 +305,13 @@ def test_regression_non_monotonic(dvcs_type, tmpdir):
tmpdir = str(tmpdir)
now = datetime.datetime.now()

dates = [now + datetime.timedelta(days=i) for i in range(5)] + [now - datetime.timedelta(days=i) for i in range(5)]
dates = [now + datetime.timedelta(days=i)
for i in range(5)] + [now - datetime.timedelta(days=i)for i in range(5)]
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 before for.

@@ -329,16 +331,16 @@ def test_regression_threshold(generate_result_dir):
tools.run_asv_with_conf(conf, "publish")
regressions = util.load_json(join(conf.html_dir, "regressions.json"))
expected = {"regressions": [["time_func", _graph_path(repo.dvcs), {}, None,
2.0, 1.0, [[None, 5, 1.0, 1.1], [None, 10, 1.1, 2.0]],
]]}
2.0, 1.0, [[None, 5, 1.0, 1.1], [None, 10, 1.1, 2.0]], ]]
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
2.0, 1.0, [[None, 5, 1.0, 1.1], [None, 10, 1.1, 2.0]], ]]
2.0, 1.0, [[None, 5, 1.0, 1.1], [None, 10, 1.1, 2.0]]]]}

@@ -98,7 +98,7 @@
REFERENCE_ONLY_CHANGED = """
before after ratio
[22b920c6] [fcf8c079]
<name1> <name2>
Copy link
Member

Choose a reason for hiding this comment

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

Revert changes to this file for now, and keep it in excluded.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok great,thanks @datapythonista noted

@dorothykiz1 dorothykiz1 changed the title CLN:fix flake8 errors in test/test_publish.py and test/test_compare.py CLN:fix flake8 errors in test/test_publish.py Mar 15, 2022
@dorothykiz1
Copy link
Contributor Author

@datapythonista this PR is ready for review

@datapythonista datapythonista merged commit f157730 into airspeed-velocity:master Mar 15, 2022
@datapythonista
Copy link
Member

Thanks @dorothykiz1, very nice, good to see the exclude list groomed.

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