From 9da160f0b53810c68e45a39de31c3927bf8fb24e Mon Sep 17 00:00:00 2001 From: Damian Shaw Date: Sat, 14 Sep 2024 14:18:04 -0400 Subject: [PATCH] New ruff config --- pyproject.toml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4d8d1181697..fa29a9cb020 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -185,9 +185,19 @@ select = [ ] [tool.ruff.lint.isort] -# Explicitly make tests "first party" as it's not in the "src" directory -known-first-party = ["tests"] -known-third-party = ["pip._vendor"] +section-order = [ + "future", + "standard-library", + "third-party", + "vendored", + "first-party", + "tests", + "local-folder", +] + +[tool.ruff.lint.isort.sections] +"vendored" = ["pip._vendor"] +"tests" = ["tests"] [tool.ruff.lint.mccabe] max-complexity = 33 # default is 10