Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different tabulation formating for plugin and ruff command line. #495

Open
lambda-science opened this issue Sep 9, 2024 · 1 comment
Open

Comments

@lambda-science
Copy link

Describe the bug
I use the Ruff Plugin (https://plugins.jetbrains.com/plugin/20574-ruff) and when I do the Format action in the IDE, it produce different results than running uv run ruff format as commnad-line. The only difference is the tabulation of function arguments.
On sreenshot 1 with uv run ruff format, the file on the left (formatted with Jetbrains ruff plugin CTRL+ALT+L) is modified to delete some tabulation.
image
Here are my plugin settings:
image

Expected behavior
Same formatting between command line nad Jetbrains plugin.

Environments (please complete the following information):

  • IDE: IntelliJ IDEA 2024.2.1 (Ultimate Edition)
  • OS: Windows 11 23H2 + Git Bash
  • Ruff Version: ruff 0.6.1
  • Plugin version: 0.0.35
@angelozerr
Copy link

@koxudaxi is the format support is delegated to LSP?

I wonder if it is an issue for LSP4IJ ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants