8000 Simplify isort config. · matplotlib/matplotlib@f2fea37 · GitHub
[go: up one dir, main page]

Skip to content

Commit f2fea37

Browse files
committed
Simplify isort config.
List mpl_toolkits as being a first-party import rather than having it in a separate section and then removing the blank line before it via no_lines_before.
1 parent b61bb0b commit f2fea37

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pyproject.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@ requires = [
88
]
99

1010
[tool.isort]
11-
known_mpltoolkits = "mpl_toolkits"
1211
known_pydata = &q 666B uot;numpy, matplotlib.pyplot"
13-
known_firstparty = "matplotlib"
14-
sections = "FUTURE,STDLIB,THIRDPARTY,PYDATA,FIRSTPARTY,MPLTOOLKITS,LOCALFOLDER"
15-
no_lines_before = "MPLTOOLKITS"
12+
known_firstparty = "matplotlib,mpl_toolkits"
13+
sections = "FUTURE,STDLIB,THIRDPARTY,PYDATA,FIRSTPARTY,LOCALFOLDER"
1614
force_sort_within_sections = true
1715

1816
[tool.ruff]

0 commit comments

Comments
 (0)
0