jupyterlab_code_formatter icon indicating copy to clipboard operation
jupyterlab_code_formatter copied to clipboard

Support ruff formatter

Open devmcp opened this issue 2 years ago • 2 comments

As of ruff v0.1.2 it supports formatting as well as linting. It would be great to support this natively.

There is a walkthrough here with a workaround, but I couldn't get it to work (I get "Formatter ruff_format not found" despite adding it to the jupyterlab config and restarting jupyterlab).

devmcp avatar Nov 09 '23 12:11 devmcp

any news on this issue ? Big fan of this project and ruff is great

samsja avatar Jan 22 '24 21:01 samsja

I'd love for this project to natively support ruff too.

Meanwhile I'm trying out the workaround linked above, but having some issues with the fact that formatting through jyputerlab_code_formatter doesn't format the same way as if running ruff format from the command line... Mildly infuriating to say the least, and makes it really difficult to use in CI. Any ideas why? It should use the same binary and version, it's just one goes through jyputerlab_code_formatter and the other doesn't as far as I can tell.

axeltlarsson avatar Mar 19 '24 14:03 axeltlarsson

Closing as fixed by https://github.com/jupyterlab-contrib/jupyterlab_code_formatter/pull/333

krassowski avatar Aug 14 '24 09:08 krassowski