astral-sh / ruff

An extremely fast Python linter and code formatter, written in Rust.
https://docs.astral.sh/ruff
MIT License
28.69k stars 928 forks source link

Official PyCharm Plugin #10102

Open Pixel-Minions opened 4 months ago

Pixel-Minions commented 4 months ago

Hi,

I was wondering if there are any plans for creating plugins for Pycharm for the formatter and linter Ruff.

Most of the people I have ever worked use Pycharm as the main driver for dev and we find ourselves using the terminal within to use Ruff.

best,

MichaReiser commented 4 months ago

Hey.

PyCharm support is something that's on our minds and we agree that it's important. For now, you can give the unofficial pycharm plugin a try https://docs.astral.sh/ruff/integrations/#pycharm-unofficial

Pixel-Minions commented 4 months ago

Thank you for your insights, @MichaReiser. We've been utilizing the plugin you recommended, primarily due to the lack of alternatives. However, we've encountered some challenges with it. Specifically, the plugin doesn't seem to perform linting as effectively as needed. We've noticed that certain linting issues aren't identified during its use, leading to unexpected feedback from our CI/CD pipeline. To address this, we're considering the implementation of pre-commit hooks as a means to automate and enhance the linting process.

MichaReiser commented 4 months ago

@Pixel-Minions, have you tried creating an issue in https://github.com/koxudaxi/ruff-pycharm-plugin to see if your problem can get fixed or is there already an existing issue?

anmolratn-qure commented 2 months ago

PyCharm is one of the most used Python IDEs, specially in a professional setting. A lot of people at my company use PyCharm but find ourselves running ruff from the command line. I believe this should be taken as a priority. The unofficial plugin has linting bugs and sometimes work unexpectedly.

MichaReiser commented 2 months ago

@snowsignal plans to look into this once we've rewritten our LSP in rust.

raayu83 commented 1 month ago

Now that rust based lsp server is beta, are there any updates on these plans?

zanieb commented 1 month ago

We are continuing to consider the best path forward here and discussing with both the JetBrains team and the author of the existing plugin. We're very interested in providing a better experience in PyCharm and we'll definitely be dedicating resources to it. I think most of the remaining uncertainty is how to use our LSP to provide the same experience in both paid and free PyCharm versions.