From cc1b698cdedf9c3635b6d31440701337aba0cc36 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 30 Mar 2024 10:34:03 +0530 Subject: [PATCH] fix isort on rapydscript handling of __python__ --- pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index d42ae19469..168d649cfb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,6 +24,10 @@ known-first-party = ["calibre_extensions", 'polyglot'] known-third-party = ["qt"] relative-imports-order = "closest-to-furthest" split-on-trailing-comma = false +section-order = ['__python__', "future", "standard-library", "third-party", "first-party", "local-folder"] + +[tool.ruff.lint.isort.sections] +'__python__' = ['__python__'] [tool.pylsp-mypy] enabled = false