Skip to content

Commit 5b170b1

Browse files
isort → ruff
1 parent 0771baa commit 5b170b1

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ repos:
88
rev: v0.14.5
99
hooks:
1010
- id: ruff-check
11-
- repo: https://github.com/pycqa/isort
12-
rev: 5.13.2
13-
hooks:
14-
- id: isort
15-
language_version: python3
1611
- repo: https://github.com/psf/black-pre-commit-mirror
1712
rev: 25.11.0
1813
hooks:

pyproject.toml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ line-length = 120
7979
[tool.ruff.lint]
8080
extend-select = [
8181
"B",
82+
"I",
8283
"UP",
8384
]
8485
ignore = [
@@ -100,15 +101,8 @@ ignore = [
100101
"distributed/shuffle/tests/test_shuffle.py" = ["F601"]
101102
"distributed/utils.py" = ["F821"]
102103

103-
[tool.isort]
104-
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "DISTRIBUTED", "FIRSTPARTY", "LOCALFOLDER"]
105-
profile = "black"
106-
skip_gitignore = true
107-
force_to_top = ["true"]
108-
default_section = "THIRDPARTY"
109-
known_first_party = ["distributed"]
110-
known_distributed = ["dask", "zict"]
111-
add_imports = ["from __future__ import annotations"]
104+
[tool.ruff.lint.isort]
105+
known-first-party = ["dask"]
112106

113107
[tool.setuptools_scm]
114108
version_file = "distributed/_version.py"

0 commit comments

Comments
 (0)