ryantam626 / jupyterlab_code_formatter

A JupyterLab plugin to facilitate invocation of code formatters.
MIT License
822 stars 52 forks source link

Add support for formatting with ruff #303

Closed felix-cw closed 1 year ago

felix-cw commented 1 year ago

This PR adds the custom ruff formatter I mentioned in issue #296.

I set a default argument to select isort rules only.

felix-cw commented 1 year ago

I just realised that the default I chose selecting isort rules I is problematic if you have a required import, because it will insert the import in every cell. I changed it to just select I001 for sorting.

ryantam626 commented 1 year ago

Hi sorry for the late reply, I haven't given this project much love.

I am in middle to a big refactor for the project (mostly due to the evolution of jupyterlab's plugin tooling), I will just merge this PR without releasing a new version for now.

I will of course attribute this addition to you when I complete the refactor which should include your changes.

ryantam626 commented 1 year ago

The plugin version 2.0.0 is now released with your change, thanks again!