From f2fea37c2fca28b6d65075c1c60db659d2d6d3f2 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Sun, 14 May 2023 13:43:27 +0200 Subject: [PATCH] Simplify isort config. List mpl_toolkits as being a first-party import rather than having it in a separate section and then removing the blank line before it via no_lines_before. --- pyproject.toml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4335056ae48c..4272ab1da054 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,11 +8,9 @@ requires = [ ] [tool.isort] -known_mpltoolkits = "mpl_toolkits" known_pydata = "numpy, matplotlib.pyplot" -known_firstparty = "matplotlib" -sections = "FUTURE,STDLIB,THIRDPARTY,PYDATA,FIRSTPARTY,MPLTOOLKITS,LOCALFOLDER" -no_lines_before = "MPLTOOLKITS" +known_firstparty = "matplotlib,mpl_toolkits" +sections = "FUTURE,STDLIB,THIRDPARTY,PYDATA,FIRSTPARTY,LOCALFOLDER" force_sort_within_sections = true [tool.ruff]