Skip to content

Commit 721be6a

Browse files
committed
Move isort configuration to pyproject.toml
1 parent afd2032 commit 721be6a

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

pyproject.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,16 @@ exclude_lines = [
5252
"pragma: no cover",
5353
"if TYPE_CHECKING:",
5454
]
55+
56+
[tool.isort]
57+
forced_separate = [
58+
"tests",
59+
"pytest_django",
60+
"pytest_django_test",
61+
]
62+
combine_as_imports = true
63+
include_trailing_comma = true
64+
line_length = 79
65+
multi_line_output = 5
66+
lines_after_imports = 2
67+
extend_skip = ["pytest_django/_version.py"]

setup.cfg

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,3 @@ pytest_django = py.typed
5858
ignore = W503
5959
max-line-length = 99
6060
exclude = lib/,src/,docs/,bin/,pytest_django/_version.py
61-
62-
[isort]
63-
forced_separate = tests,pytest_django,pytest_django_test
64-
combine_as_imports = true
65-
default_section = THIRDPARTY
66-
include_trailing_comma = true
67-
line_length = 79
68-
multi_line_output = 5
69-
lines_after_imports = 2
70-
extend_skip = pytest_django/_version.py

0 commit comments

Comments
 (0)