Skip to content

Commit 9da160f

Browse files
committed
New ruff config
1 parent 102d818 commit 9da160f

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

pyproject.toml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,19 @@ select = [
185185
]
186186

187187
[tool.ruff.lint.isort]
188-
# Explicitly make tests "first party" as it's not in the "src" directory
189-
known-first-party = ["tests"]
190-
known-third-party = ["pip._vendor"]
188+
section-order = [
189+
"future",
190+
"standard-library",
191+
"third-party",
192+
"vendored",
193+
"first-party",
194+
"tests",
195+
"local-folder",
196+
]
197+
198+
[tool.ruff.lint.isort.sections]
199+
"vendored" = ["pip._vendor"]
200+
"tests" = ["tests"]
191201

192202
[tool.ruff.lint.mccabe]
193203
max-complexity = 33 # default is 10

0 commit comments

Comments
 (0)