Skip to content

Commit bc62922

Browse files
committed
Enable import sorting
1 parent 6258a6b commit bc62922

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Diff for: pyproject.toml

+17
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,20 @@
33

44
[tool.ruff.format]
55
# quote-style = "preserve"
6+
7+
[tool.ruff.lint]
8+
extend-select = ["I"]
9+
10+
[tool.ruff.lint.isort]
11+
section-order = [
12+
"future",
13+
"django",
14+
"standard-library",
15+
"third-party",
16+
"first-party",
17+
"local-folder",
18+
]
19+
20+
[tool.ruff.lint.isort.sections]
21+
# Group all Django imports into a separate section.
22+
"django" = ["django"]

0 commit comments

Comments
 (0)