diff --git a/pyproject.toml b/pyproject.toml index e0d376c6..8ab0bc14 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,3 +52,16 @@ exclude_lines = [ "pragma: no cover", "if TYPE_CHECKING:", ] + +[tool.isort] +forced_separate = [ + "tests", + "pytest_django", + "pytest_django_test", +] +combine_as_imports = true +include_trailing_comma = true +line_length = 79 +multi_line_output = 5 +lines_after_imports = 2 +extend_skip = ["pytest_django/_version.py"] diff --git a/setup.cfg b/setup.cfg index 920931db..f34320bb 100644 --- a/setup.cfg +++ b/setup.cfg @@ -58,13 +58,3 @@ pytest_django = py.typed ignore = W503 max-line-length = 99 exclude = lib/,src/,docs/,bin/,pytest_django/_version.py - -[isort] -forced_separate = tests,pytest_django,pytest_django_test -combine_as_imports = true -default_section = THIRDPARTY -include_trailing_comma = true -line_length = 79 -multi_line_output = 5 -lines_after_imports = 2 -extend_skip = pytest_django/_version.py