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
I think you’re looking for this setting: https://beta.ruff.rs/docs/settings/#isort-split-on-trailing-comma. Ruff defaults it to true while isort does not. (It’s a point of confusion as the isort docs state it defaults to true for their Black configuration, but doesn’t seem to do so in practice.)
After some refactoring, several imports were removed and this was left:
With isort this is nicely formatted as:
But ruff does no formatting here and keeps the file as is.
Ruff 0.0.284 was executed as
ruff check --fix --select I test.py
with no config, isort asisort test.py
with not config.The text was updated successfully, but these errors were encountered: