From a6d483491341b75c23f9dcb7aeb90eb1fa3daec8 Mon Sep 17 00:00:00 2001 From: Tim Paine <3105306+timkpaine@users.noreply.github.com> Date: Sat, 13 Jul 2024 13:37:18 -0400 Subject: [PATCH] Add ruff isort to rules Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com> --- pyproject.toml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 0b67505af..9a166734a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -146,17 +146,6 @@ before-build = "make requirements" archs = "AMD64" skip = "*win32 *arm_64" -[tool.isort] -combine_as_imports = true -include_trailing_comma = true -line_length = 120 -profile = "black" - -default_section = "THIRDPARTY" -sections = "FUTURE,THIRDPARTY,FIRSTPARTY,LOCALFOLDER" - -known_first_party = "csp" - [tool.pytest.ini_options] asyncio_mode = "strict" testpaths = "csp/tests" @@ -164,6 +153,17 @@ testpaths = "csp/tests" [tool.ruff] line-length = 120 +[tool.ruff.lint.isort] +combine-as-imports = true +default-section = "third-party" +known-first-party = ["csp"] +section-order = [ + "future", + "third-party", + "first-party", + "local-folder", +] + [tool.ruff.lint.per-file-ignores] "__init__.py" = ["F401", "F403"] "csp/impl/__*.py" = ["F401"]