1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
Forwarded: https://github.com/koxudaxi/datamodel-code-generator/pull/2521
From: Simon Josefsson <simon@josefsson.org>
Date: Sat, 18 Oct 2025 10:01:09 +0200
Subject: [PATCH] Support isort 7
---
pyproject.toml | 2 +-
tests/main/graphql/test_main_graphql.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pyproject.toml b/pyproject.toml
index 2fe04801..d5715e86 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -34,7 +34,7 @@ dependencies = [
"black>=19.10b0",
"genson>=1.2.1,<2",
"inflect>=4.1,<8",
- "isort>=4.3.21,<7",
+ "isort>=4.3.21,<8",
"jinja2>=2.10.1,<4",
"packaging",
"pydantic>=1.5",
diff --git a/tests/main/graphql/test_main_graphql.py b/tests/main/graphql/test_main_graphql.py
index fdb3eb77..0c1d0bd4 100644
--- a/tests/main/graphql/test_main_graphql.py
+++ b/tests/main/graphql/test_main_graphql.py
@@ -213,7 +213,7 @@ def test_main_graphql_additional_imports_isort_4(tmp_path: Path) -> None:
black.__version__.split(".")[0] == "19",
reason="Installed black doesn't support the old style",
)
-def test_main_graphql_additional_imports_isort_5_or_6(tmp_path: Path) -> None:
+def test_main_graphql_additional_imports_isort_not_4(tmp_path: Path) -> None:
output_file: Path = tmp_path / "output.py"
return_code: Exit = main([
"--input",
--
2.51.0
|