Skip to content

Commit 60fdfda

Browse files
committed
remove custom categories sorting
1 parent 6811faf commit 60fdfda

File tree

1 file changed

+1
-31
lines changed

1 file changed

+1
-31
lines changed

pyproject.toml

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,6 @@
11
[tool.usort]
22

3-
categories = [
4-
"future",
5-
"standard_library",
6-
"third_party",
7-
# PyTorch core needs to imported before any other PyTorch derivative, because it does some magic in the background.
8-
"pytorch_core",
9-
"first_party",
10-
# This category are contains local utility modules from our references/ and test/ folder. usort mistakes them for
11-
# third party packages if we don't specify them manually.
12-
"local_utils",
13-
]
14-
15-
[tool.usort.known]
16-
17-
pytorch_core = ["torch"]
18-
first_party = ["torchvision"]
19-
20-
local_utils = [
21-
"_utils_internal",
22-
"coco_utils",
23-
"common_utils",
24-
"datasets_utils",
25-
"engine",
26-
"group_by_aspect_ratio",
27-
"loss",
28-
"model",
29-
"presets",
30-
"sampler",
31-
"scheduler",
32-
"utils",
33-
]
3+
first_party_detection = false
344

355
[tool.black]
366

0 commit comments

Comments
 (0)