Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed Jul 16, 2024
1 parent dfebe02 commit f511311
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions jupyterlab_code_formatter/formatters.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,8 @@ class StylerFormatter(RFormatter):

@handle_line_ending_and_magic
def format_code(self, code: str, notebook: bool, **options) -> str:
# while not used, this import is needed to load conversion rules
import rpy2.robjects
import rpy2.robjects.packages as rpackages

styler_r = rpackages.importr(self.package_name)
Expand Down
1 change: 0 additions & 1 deletion jupyterlab_code_formatter/tests/test_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,6 @@ async def test_can_use_styler2(request_format): # type: ignore[no-untyped-def]
expected_code=200,
expected_schema=EXPECTED_FROMAT_SCHEMA,
)
assert not json_result
assert json_result["code"][0]["code"] == expected


Expand Down

0 comments on commit f511311

Please sign in to comment.