Skip to content

Commit 8071527

Browse files
authored
use isort's profile feature (#58)
* use profile=black for isort * move the configuration to pyproject.toml
1 parent 1ab6bba commit 8071527

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,10 @@ fallback_version = "999"
77

88
[tool.pytest.ini_options]
99
junit_family = "xunit2"
10+
11+
[tool.isort]
12+
profile = "black"
13+
skip_gitignore = "true"
14+
force_to_top = "true"
15+
default_section = "THIRDPARTY"
16+
known_first_party = "pint_xarray"

setup.cfg

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,3 @@ ignore =
3939
W503 # line break before binary operator
4040
exclude=
4141
.eggs
42-
43-
[isort]
44-
default_section = THIRDPARTY
45-
known_first_party = pint_xarray
46-
multi_line_output = 3
47-
include_trailing_comma = True
48-
force_grid_wrap = 0
49-
use_parentheses = True
50-
line_length = 88

0 commit comments

Comments
 (0)