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"]