Skip to content

Commit

Permalink
style: ruff isort rules
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nikomakela committed Dec 19, 2024
1 parent 2cb2341 commit 1a8b62b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1a8b62b

Please sign in to comment.