From 9beb3eb2007909e1c6183923a6436cb423786835 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Tue, 21 Feb 2023 13:52:22 -0500 Subject: [PATCH] Re-add compatibility to README --- README.md | 1 + docs/faq.md | 9 +-------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 1630e320bd70a..15777c41ce8a9 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ An extremely fast Python linter, written in Rust. * ⚡️ 10-100x faster than existing linters * 🐍 Installable via `pip` * 🛠️ `pyproject.toml` support +* 🤝 Python 3.11 compatibility * 📦 Built-in caching, to avoid re-analyzing unchanged files * 🔧 Autofix support, for automatic error correction (e.g., automatically remove unused imports) * 📏 Over [400 built-in rules](https://beta.ruff.rs/docs/rules/) (and growing) diff --git a/docs/faq.md b/docs/faq.md index ecde309cd2cc0..f49b380814441 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -168,14 +168,7 @@ If you're looking to use Ruff, but rely on an unsupported Flake8 plugin, feel fr ## What versions of Python does Ruff support? -Ruff can lint code for any Python version from 3.7 onwards. However, Ruff lacks support for a few -language features that were introduced in Python 3.10 and later. Specifically, Ruff does not -support: - -* "Structural Pattern Matching" ([PEP 622](https://peps.python.org/pep-0622/)), introduced in Python 3.10. -* "Exception Groups and except* ([PEP 654](https://www.python.org/dev/peps/pep-0654/)), introduced in Python 3.11. - -Support for these features is planned. +Ruff can lint code for any Python version from 3.7 onwards, including Python 3.10 and 3.11. Ruff does not support Python 2. Ruff _may_ run on pre-Python 3.7 code, although such versions are not officially supported (e.g., Ruff does _not_ respect type comments).