You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Ruff runs as an action on save, even if I don't tell it to. I literally have all boxes in the Ruff settings page unchecked. Worst of all, however, the context action for organizing imports, and the action on save disagree on the correct import formatting for the snippet:
With one suggesting a line between numpy and my_package imports while the other keeps removing the line. This only happens when I use top-level imports from my_package, i.e. the issue is resolved with from .utils import.
To Reproduce
Steps to reproduce the behavior:
Install ruff plugin
Deactivate all actions in the Settings>Tools>Ruff pane
Still get Ruff actions on save
Create a project structure where you import files from a top-level package
Actions on save and code annotations disagree
Expected behavior
When I turn off Run ruff on save and Run ruff when reformat code, Ruff should never run automatically to fix my code. Also, the action on save is incorrect in this case, I believe, in suggesting removing the line between imports from my_package and third party software. This should be fixed.
Screenshots
This is my ruff tool pane:
This is what the action on save formats it to (Ruff thinks this is wrong):
This is what it should look like:
Environments (please complete the following information):
IDE: PyCharm Professional 2024.1.1
OS: Debian Bookworm 12.5
Ruff Version: 0.4.4
Plugin version: 0.0.33
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
Ruff runs as an action on save, even if I don't tell it to. I literally have all boxes in the Ruff settings page unchecked. Worst of all, however, the context action for organizing imports, and the action on save disagree on the correct import formatting for the snippet:
With one suggesting a line between numpy and my_package imports while the other keeps removing the line. This only happens when I use top-level imports from my_package, i.e. the issue is resolved with
from .utils import
.To Reproduce
Steps to reproduce the behavior:
Expected behavior
When I turn off
Run ruff on save
andRun ruff when reformat code
, Ruff should never run automatically to fix my code. Also, the action on save is incorrect in this case, I believe, in suggesting removing the line between imports from my_package and third party software. This should be fixed.Screenshots
This is my ruff tool pane:
This is what the action on save formats it to (Ruff thinks this is wrong):
This is what it should look like:
Environments (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: