From 1a8b62b574ed379bfc98a8dc4502d7eaac8b909c Mon Sep 17 00:00:00 2001 From: Niko Lindroos Date: Thu, 19 Dec 2024 16:44:42 +0200 Subject: [PATCH] style: ruff isort rules KK-1113. The results have been inconsistent, so now the configuration is explicitly set (to defaults). Only the order-by-type is not a default value. --- pyproject.toml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 65da6ea2..700d10eb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,6 +5,7 @@ requires-python = ">=3.11" [tool.ruff] extend-exclude = ["migrations", "snapshots"] +src = [".", "src"] [tool.ruff.lint] # See https://docs.astral.sh/ruff/rules/ for documentation of rules @@ -28,7 +29,16 @@ ignore = [ [tool.ruff.lint.isort] # isort options for ruff: # https://docs.astral.sh/ruff/settings/#lintisort -order-by-type = false # Don't use type (i.e. case) to sort imports +case-sensitive = false +combine-as-imports = false +detect-same-package = true +force-single-line = false +force-sort-within-sections = false +force-wrap-aliases = false +from-first = false +order-by-type = false +relative-imports-order = "furthest-to-closest" +split-on-trailing-comma = true [tool.ruff.format] docstring-code-format = true # Format code in docstrings