Skip to content

Commit 666ecdc

Browse files
committed
Update dependencies
1 parent a4e5778 commit 666ecdc

25 files changed

+367
-250
lines changed

poetry.lock

Lines changed: 315 additions & 188 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Changelog = "https://github.com/graphql-python/graphql-core/releases"
4444
[tool.poetry.dependencies]
4545
python = "^3.7"
4646
typing-extensions = [
47-
{ version = "^4.12", python = ">=3.8,<3.10" },
47+
{ version = "^4.12.2", python = ">=3.8,<3.10" },
4848
{ version = "^4.7.1", python = "<3.8" },
4949
]
5050

@@ -57,18 +57,23 @@ pytest = [
5757
{ version = "^7.4", python = "<3.8" }
5858
]
5959
pytest-asyncio = [
60-
{ version = "^0.23.8", python = ">=3.8" },
60+
{ version = "^0.25.2", python = ">=3.9" },
61+
{ version = "~0.24.0", python = ">=3.8,<3.9" },
6162
{ version = "~0.21.1", python = "<3.8" }
6263
]
63-
pytest-benchmark = "^4.0"
64+
pytest-benchmark = [
65+
{ version = "^5.1", python = ">=3.9" },
66+
{ version = "^4.0", python = "<3.9" }
67+
]
6468
pytest-cov = [
65-
{ version = "^5.0", python = ">=3.8" },
69+
{ version = "^6.0", python = ">=3.9" },
70+
{ version = "^5.0", python = ">=3.8,<3.9" },
6671
{ version = "^4.1", python = "<3.8" },
6772
]
6873
pytest-describe = "^2.2"
6974
pytest-timeout = "^2.3"
7075
pytest-codspeed = [
71-
{ version = "^3.1.0", python = ">=3.9" },
76+
{ version = "^3.1.2", python = ">=3.9" },
7277
{ version = "^2.2.1", python = "<3.8" }
7378
]
7479
tox = [
@@ -80,22 +85,22 @@ tox = [
8085
optional = true
8186

8287
[tool.poetry.group.lint.dependencies]
83-
ruff = ">=0.8,<0.9"
88+
ruff = ">=0.9,<0.10"
8489
mypy = [
85-
{ version = "^1.12", python = ">=3.8" },
90+
{ version = "^1.14", python = ">=3.8" },
8691
{ version = "~1.4", python = "<3.8" }
8792
]
88-
bump2version = ">=1.0,<2"
93+
bump2version = ">=1,<2"
8994

9095
[tool.poetry.group.doc]
9196
optional = true
9297

9398
[tool.poetry.group.doc.dependencies]
9499
sphinx = [
95-
{ version = ">=7,<8", python = ">=3.8" },
100+
{ version = ">=7,<9", python = ">=3.8" },
96101
{ version = ">=4,<6", python = "<3.8" }
97102
]
98-
sphinx_rtd_theme = "^2.0"
103+
sphinx_rtd_theme = ">=2,<4"
99104

100105
[tool.ruff]
101106
line-length = 88
@@ -149,6 +154,7 @@ select = [
149154
"YTT", # flake8-2020
150155
]
151156
ignore = [
157+
"A005", # allow using standard-lib module names
152158
"ANN401", # allow explicit Any
153159
"COM812", # allow trailing commas for auto-formatting
154160
"D105", "D107", # no docstring needed for magic methods
@@ -324,5 +330,5 @@ testpaths = ["tests"]
324330
asyncio_default_fixture_loop_scope = "function"
325331

326332
[build-system]
327-
requires = ["poetry_core>=1.6.1,<2"]
333+
requires = ["poetry_core>=1.6.1,<3"]
328334
build-backend = "poetry.core.masonry.api"

src/graphql/execution/values.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,7 @@ def get_argument_values(
175175
coerced_values[arg_def.out_name or name] = arg_def.default_value
176176
elif is_non_null_type(arg_type): # pragma: no cover else
177177
msg = (
178-
f"Argument '{name}' of required type '{arg_type}'"
179-
" was not provided."
178+
f"Argument '{name}' of required type '{arg_type}' was not provided."
180179
)
181180
raise GraphQLError(msg, node)
182181
continue # pragma: no cover

src/graphql/language/lexer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def read_escaped_unicode_variable_width(self, position: int) -> EscapeSequence:
342342
raise GraphQLSyntaxError(
343343
self.source,
344344
position,
345-
f"Invalid Unicode escape sequence: '{body[position: position + size]}'.",
345+
f"Invalid Unicode escape sequence: '{body[position : position + size]}'.",
346346
)
347347

348348
def read_escaped_unicode_fixed_width(self, position: int) -> EscapeSequence:
@@ -368,7 +368,7 @@ def read_escaped_unicode_fixed_width(self, position: int) -> EscapeSequence:
368368
raise GraphQLSyntaxError(
369369
self.source,
370370
position,
371-
f"Invalid Unicode escape sequence: '{body[position: position + 6]}'.",
371+
f"Invalid Unicode escape sequence: '{body[position : position + 6]}'.",
372372
)
373373

374374
def read_escaped_character(self, position: int) -> EscapeSequence:
@@ -380,7 +380,7 @@ def read_escaped_character(self, position: int) -> EscapeSequence:
380380
raise GraphQLSyntaxError(
381381
self.source,
382382
position,
383-
f"Invalid character escape sequence: '{body[position: position + 2]}'.",
383+
f"Invalid character escape sequence: '{body[position : position + 2]}'.",
384384
)
385385

386386
def read_block_string(self, start: int) -> Token:

src/graphql/type/definition.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,7 @@ def __init__(
386386
self.parse_literal = parse_literal # type: ignore
387387
if parse_literal is not None and parse_value is None:
388388
msg = (
389-
f"{name} must provide"
390-
" both 'parse_value' and 'parse_literal' functions."
389+
f"{name} must provide both 'parse_value' and 'parse_literal' functions."
391390
)
392391
raise TypeError(msg)
393392
self.specified_by_url = specified_by_url

src/graphql/type/introspection.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,8 +639,7 @@ class TypeKind(Enum):
639639
),
640640
"NON_NULL": GraphQLEnumValue(
641641
TypeKind.NON_NULL,
642-
description="Indicates this type is a non-null."
643-
" `ofType` is a valid field.",
642+
description="Indicates this type is a non-null. `ofType` is a valid field.",
644643
),
645644
},
646645
)

src/graphql/type/scalars.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def parse_id_literal(value_node: ValueNode, _variables: Any = None) -> str:
315315
GraphQLBoolean,
316316
GraphQLID,
317317
)
318-
}
318+
} # pyright: ignore
319319

320320

321321
def is_specified_scalar_type(type_: GraphQLNamedType) -> TypeGuard[GraphQLScalarType]:

src/graphql/type/validate.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,7 @@ def validate_input_fields(self, input_obj: GraphQLInputObjectType) -> None:
454454

455455
if not fields:
456456
self.report_error(
457-
f"Input Object type {input_obj.name}"
458-
" must define one or more fields.",
457+
f"Input Object type {input_obj.name} must define one or more fields.",
459458
[input_obj.ast_node, *input_obj.extension_ast_nodes],
460459
)
461460

src/graphql/utilities/find_breaking_changes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def find_union_type_changes(
294294
schema_changes.append(
295295
DangerousChange(
296296
DangerousChangeType.TYPE_ADDED_TO_UNION,
297-
f"{possible_type.name} was added" f" to union type {old_type.name}.",
297+
f"{possible_type.name} was added to union type {old_type.name}.",
298298
)
299299
)
300300

@@ -407,7 +407,7 @@ def find_arg_changes(
407407
schema_changes.append(
408408
BreakingChange(
409409
BreakingChangeType.ARG_REMOVED,
410-
f"{old_type.name}.{field_name} arg" f" {arg_name} was removed.",
410+
f"{old_type.name}.{field_name} arg {arg_name} was removed.",
411411
)
412412
)
413413

src/graphql/validation/rules/overlapping_fields_can_be_merged.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@
4444
def reason_message(reason: ConflictReasonMessage) -> str:
4545
if isinstance(reason, list):
4646
return " and ".join(
47-
f"subfields '{response_name}' conflict"
48-
f" because {reason_message(sub_reason)}"
47+
f"subfields '{response_name}' conflict because {reason_message(sub_reason)}"
4948
for response_name, sub_reason in reason
5049
)
5150
return reason

0 commit comments

Comments
 (0)