mirror of https://github.com/astral-sh/ruff
Add a note on some isort incompatibilities
This commit is contained in:
parent
c5cebb106e
commit
7d9c1d7a5a
|
|
@ -1639,7 +1639,9 @@ project. See [#283](https://github.com/charliermarsh/ruff/issues/283) for more.
|
||||||
### How does Ruff's import sorting compare to [`isort`](https://pypi.org/project/isort/)?
|
### How does Ruff's import sorting compare to [`isort`](https://pypi.org/project/isort/)?
|
||||||
|
|
||||||
Ruff's import sorting is intended to be nearly equivalent to `isort` when used `profile = "black"`.
|
Ruff's import sorting is intended to be nearly equivalent to `isort` when used `profile = "black"`.
|
||||||
(There are some minor differences in how Ruff and isort break ties between similar imports.)
|
There are a few known, minor differences in how Ruff and isort break ties between similar imports,
|
||||||
|
and in how Ruff and isort treat inline comments in some cases (see: [#1381](https://github.com/charliermarsh/ruff/issues/1381),
|
||||||
|
[#2104](https://github.com/charliermarsh/ruff/issues/2104)).
|
||||||
|
|
||||||
Like `isort`, Ruff's import sorting is compatible with Black.
|
Like `isort`, Ruff's import sorting is compatible with Black.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue