I am trying Ruff for the first time, and I'm not being able to sort imports alphabetically, using the default settings. According to the documentation, Ruff should be very similar to isort.
Here is a short example with unsorted imports:
import os
import collections
Run ruff command
ruff format file.py
Output:
1 file left unchanged
But if I run isort the imports are properly sorted
isort file.py
Output:
Fixing .../file.py
What am I doing wrong?