From b98ab1b0b68f0b0a85c2e8f9b3f43ca04bf2cba6 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Sat, 8 Jun 2024 13:10:50 -0700 Subject: [PATCH] Add isort standard-library distinction to FAQ (#11804) ## Summary Closes https://github.com/astral-sh/ruff/issues/11726. --- CHANGELOG.md | 1 + docs/faq.md | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fecf38a71e..170e5ccedc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -113,6 +113,7 @@ To read more about this exciting milestone, check out our [blog post](https://as ### Rule changes - \[`flake8-future-annotations`\] Reword `future-rewritable-type-annotation` (`FA100`) message ([#11381](https://github.com/astral-sh/ruff/pull/11381)) +- \[`isort`\] Expanded the set of standard-library modules to include `_string`, etc. ([#11374](https://github.com/astral-sh/ruff/pull/11374)) - \[`pycodestyle`\] Consider soft keywords for `E27` rules ([#11446](https://github.com/astral-sh/ruff/pull/11446)) - \[`pyflakes`\] Recommend adding unused import bindings to `__all__` ([#11314](https://github.com/astral-sh/ruff/pull/11314)) - \[`pyflakes`\] Update documentation and deprecate `ignore_init_module_imports` ([#11436](https://github.com/astral-sh/ruff/pull/11436)) diff --git a/docs/faq.md b/docs/faq.md index 02d2ff1663..cc40f89946 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -266,6 +266,9 @@ from numpy import sin as np_sin from numpy import tan, uint8, uint16, uint32, uint64 ``` +Ruff also correctly classifies some modules as standard-library that aren't recognized +by isort, like `_string` and `idlelib`. + Like isort, Ruff's import sorting is compatible with Black. Ruff does not yet support all of isort's configuration options, though it does support many of