From 460e6e25ab60c657e02cb75189da6e156f381d95 Mon Sep 17 00:00:00 2001 From: 19thyneb Date: Thu, 18 Mar 2021 12:17:28 -0700 Subject: [PATCH] Black Formatting --- lux/core/sqltable.py | 6 ++++-- tests/test_vis.py | 14 ++++++++++---- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/lux/core/sqltable.py b/lux/core/sqltable.py index 8a4125c3..644c52e2 100644 --- a/lux/core/sqltable.py +++ b/lux/core/sqltable.py @@ -123,13 +123,15 @@ def _repr_html_(self): ) self.output = widgets.Output() lux.config.executor.execute_preview(self) - notice = HTML(""" - Please note, the data shown here is just a preview of the database table. You will be unable to perform Pandas functionality on this data.""") + Please note, the data shown here is just a preview of the database table. You will be unable to perform Pandas functionality on this data.""" + ) display(button, notice, self.output) diff --git a/tests/test_vis.py b/tests/test_vis.py index 9abb2654..4514be42 100644 --- a/tests/test_vis.py +++ b/tests/test_vis.py @@ -266,8 +266,11 @@ def test_scatter_chart(global_var): vis = Vis(["Acceleration", "Weight"], df) vis_code = vis.to_matplotlib_code() assert "ax.scatter(x_pts, y_pts, alpha=0.5)" in vis_code - assert "ax.set_xlabel(\'Acceleration\', fontsize=\'15\')" in vis_code or "ax.set_xlabel('Acceleration')" in vis_code - assert "ax.set_ylabel(\'Weight\', fontsize=\'15\')" in vis_code or "ax.set_ylabel('Weight')" in vis_code + assert ( + "ax.set_xlabel('Acceleration', fontsize='15')" in vis_code + or "ax.set_xlabel('Acceleration')" in vis_code + ) + assert "ax.set_ylabel('Weight', fontsize='15')" in vis_code or "ax.set_ylabel('Weight')" in vis_code def test_colored_scatter_chart(global_var): @@ -290,8 +293,11 @@ def test_colored_scatter_chart(global_var): vis_code = vis.to_matplotlib_code() assert "ax.scatter" in vis_code assert "title='Origin'" in vis_code - assert "ax.set_xlabel(\'Acceleration\', fontsize=\'15\')" in vis_code or "ax.set_xlabel('Acceleration')" in vis_code - assert "ax.set_ylabel(\'Weight\', fontsize=\'15\')" in vis_code or "ax.set_ylabel('Weight')" in vis_code + assert ( + "ax.set_xlabel('Acceleration', fontsize='15')" in vis_code + or "ax.set_xlabel('Acceleration')" in vis_code + ) + assert "ax.set_ylabel('Weight', fontsize='15')" in vis_code or "ax.set_ylabel('Weight')" in vis_code def test_line_chart(global_var):