How to Run Ruff Formatter Upon Save from UV?

Answered

So, I prefer the ruff linter and installed the Ruff plugin. But I want to run ruff from my `uv` package manager tool. To make it clear, I want the following line to be triggered upon each save event on the file 

``` uv tool run ruff format src/*.py```

So is there a way to put the ruff executable from the above in the configuration of the pycharm ruff tool below, without having to install ruff globally in my pc?

 

 

 

0
2 comments

As of now it's not possible - It will be once we have built-in support for ruff as a formatted - https://youtrack.jetbrains.com/issue/PY-63080/Built-in-ruff-support-as-formatter

It's planned for 2025.2 - Subscribe to receive updates

1

In that case how to use that plugin? 

0

Please sign in to leave a comment.