Add "How does Ruff's import sorting compare to isort?" link to README (#26530)

## Summary

Noticed a small inconsistency where the doc exists, but is only linked
to for Flake8 and Black, not isort.

## Test Plan

Look at the file preview and click the link

https://github.com/Avasam/ruff/blob/a42f1cd4b999a36081d371df43334c3204525171/README.md
This commit is contained in:
Avasam authored and GitHub committed 2026-07-03 14:02:54 -04:00
1 parent a19ece2374
commit 427138fee8
2 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -29,7 +29,7 @@ An extremely fast Python linter and code formatter, written in Rust.
- 🐍 Installable via `pip`
- 🛠️ `pyproject.toml` support
- 🤝 Python 3.14 compatibility
- ⚖️ Drop-in parity with [Flake8](https://docs.astral.sh/ruff/faq/#how-does-ruffs-linter-compare-to-flake8), isort, and [Black](https://docs.astral.sh/ruff/faq/#how-does-ruffs-formatter-compare-to-black)
- ⚖️ Drop-in parity with [Flake8](https://docs.astral.sh/ruff/faq/#how-does-ruffs-linter-compare-to-flake8), [isort](https://docs.astral.sh/ruff/faq/#how-does-ruffs-import-sorting-compare-to-isort), and [Black](https://docs.astral.sh/ruff/faq/#how-does-ruffs-formatter-compare-to-black)
- 📦 Built-in caching, to avoid re-analyzing unchanged files
- 🔧 Fix support, for automatic error correction (e.g., automatically remove unused imports)
- 📏 Over [900 built-in rules](https://docs.astral.sh/ruff/rules/), with native re-implementations
+3
View File
@@ -66,6 +66,9 @@ LINK_REWRITES: dict[str, str] = {
"https://docs.astral.sh/ruff/faq/#how-does-ruffs-linter-compare-to-flake8": (
"faq.md#how-does-ruffs-linter-compare-to-flake8"
),
"https://docs.astral.sh/ruff/faq/#how-does-ruffs-import-sorting-compare-to-isort": (
"faq.md#how-does-ruffs-import-sorting-compare-to-isort"
),
"https://docs.astral.sh/ruff/faq/#how-does-ruffs-formatter-compare-to-black": (
"faq.md#how-does-ruffs-formatter-compare-to-black"
),