Skip to content

Commit 60ba420

Browse files
committed
🐛 Fix: sort imports properly
1 parent 07bb550 commit 60ba420

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/vuegen/quarto_reportview.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import pandas as pd
99

1010
from . import report as r
11-
from .utils import create_folder, is_url, sort_imports, get_relative_file_path
11+
from .utils import create_folder, get_relative_file_path, is_url, sort_imports
1212

1313

1414
class QuartoReportView(r.ReportView):
@@ -846,7 +846,7 @@ def _show_dataframe(self, dataframe) -> List[str]:
846846
Path(self.static_dir) / f"{dataframe.title.replace(' ', '_')}.png"
847847
)
848848
dataframe_content.append(
849-
f"df.dfi.export('{Path(df_image).relative_to("quarto_report").as_posix()}', max_rows=10, max_cols=5, table_conversion='matplotlib')\n```\n"
849+
f"df.dfi.export('{Path(df_image).relative_to('quarto_report').as_posix()}', max_rows=10, max_cols=5, table_conversion='matplotlib')\n```\n"
850850
)
851851
# Use helper method to add centered image content
852852
dataframe_content.append(self._generate_image_content(df_image))

src/vuegen/streamlit_reportview.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from streamlit.web import cli as stcli
1010

1111
from . import report as r
12-
from .utils import create_folder, generate_footer, is_url, get_relative_file_path
12+
from .utils import create_folder, generate_footer, get_relative_file_path, is_url
1313
from .utils.variables import make_valid_identifier
1414

1515

0 commit comments

Comments
 (0)