From 39aae28eb4e74c1d15fde3142dc45740ab108a15 Mon Sep 17 00:00:00 2001 From: nefrob <25070989+nefrob@users.noreply.github.com> Date: Thu, 12 Jan 2023 11:18:06 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Update=20readme=20example=20for?= =?UTF-8?q?=20adding=20isort=20required=20imports=20(#1824)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes use of isort name to the ruff name. --- README.md | 2 +- src/isort/settings.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a44916a62f..5d66c8a858 100644 --- a/README.md +++ b/README.md @@ -3034,7 +3034,7 @@ Add the specified import line to all files. ```toml [tool.ruff.isort] -add-import = ["from __future__ import annotations"] +required-imports = ["from __future__ import annotations"] ``` --- diff --git a/src/isort/settings.rs b/src/isort/settings.rs index abcfc4d320..e20b39b429 100644 --- a/src/isort/settings.rs +++ b/src/isort/settings.rs @@ -133,7 +133,7 @@ pub struct Options { default = r#"[]"#, value_type = "Vec", example = r#" - add-import = ["from __future__ import annotations"] + required-imports = ["from __future__ import annotations"] "# )] /// Add the specified import line to all files.