Skip to content

Commit 55efd7c

Browse files
committed
Update and clean-up dependencies
1 parent 4ea6d04 commit 55efd7c

File tree

7 files changed

+431
-472
lines changed

7 files changed

+431
-472
lines changed

poetry.lock

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

pyproject.toml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,11 @@ typing-extensions = [
5252
optional = true
5353

5454
[tool.poetry.group.test.dependencies]
55-
anyio = { version = ">= 3.7.1" }
55+
anyio = { version = "^3.7.1" }
5656
pytest = [
5757
{ version = "^8.3", python = ">=3.8" },
5858
{ version = "^7.4", python = "<3.8" }
5959
]
60-
pytest-asyncio = [
61-
{ version = "^0.25.2", python = ">=3.9" },
62-
{ version = "~0.24.0", python = ">=3.8,<3.9" },
63-
{ version = "~0.21.1", python = "<3.8" }
64-
]
6560
pytest-benchmark = [
6661
{ version = "^5.1", python = ">=3.9" },
6762
{ version = "^4.0", python = "<3.9" }
@@ -86,9 +81,9 @@ tox = [
8681
optional = true
8782

8883
[tool.poetry.group.lint.dependencies]
89-
ruff = ">=0.12,<0.13"
84+
ruff = ">=0.13,<0.14"
9085
mypy = [
91-
{ version = "^1.16", python = ">=3.9" },
86+
{ version = "^1.18", python = ">=3.9" },
9287
{ version = "~1.14", python = ">=3.8,<3.9" },
9388
{ version = "~1.4", python = "<3.8" }
9489
]

tests/test_user_registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ async def receive_all():
506506
tasks = [
507507
create_task(task()) for task in (mutate_users, receive_one, receive_all)
508508
]
509-
done, pending = await wait(tasks, timeout=1)
509+
_done, pending = await wait(tasks, timeout=1)
510510
assert not pending
511511

512512
expected_data: list[dict[str, Any]] = [

tests/type/test_definition.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def accepts_a_scalar_type_with_ast_node_and_extension_ast_nodes():
169169
assert scalar.extension_ast_nodes == tuple(extension_ast_nodes)
170170

171171
def rejects_a_scalar_type_with_incorrectly_typed_name():
172-
with pytest.raises(TypeError, match="missing .* required .* 'name'"):
172+
with pytest.raises(TypeError, match=r"missing .* required .* 'name'"):
173173
# noinspection PyArgumentList
174174
GraphQLScalarType() # type: ignore
175175
with pytest.raises(TypeError) as exc_info:
@@ -445,7 +445,7 @@ def accepts_an_object_type_with_ast_node_and_extension_ast_nodes():
445445
assert object_type.extension_ast_nodes == tuple(extension_ast_nodes)
446446

447447
def rejects_an_object_type_with_incorrectly_typed_name():
448-
with pytest.raises(TypeError, match="missing .* required .* 'name'"):
448+
with pytest.raises(TypeError, match=r"missing .* required .* 'name'"):
449449
# noinspection PyArgumentList
450450
GraphQLObjectType() # type: ignore
451451
with pytest.raises(TypeError) as exc_info:
@@ -909,7 +909,7 @@ def accepts_an_enum_type_with_ast_node_and_extension_ast_nodes():
909909
assert enum_type.extension_ast_nodes == tuple(extension_ast_nodes)
910910

911911
def rejects_an_enum_type_with_incorrectly_typed_name():
912-
with pytest.raises(TypeError, match="missing .* required .* 'name'"):
912+
with pytest.raises(TypeError, match=r"missing .* required .* 'name'"):
913913
# noinspection PyArgumentList
914914
GraphQLEnumType() # type: ignore
915915
with pytest.raises(TypeError) as exc_info:
@@ -939,7 +939,7 @@ def rejects_an_enum_type_with_incorrectly_named_values():
939939
assert msg == "Names must only contain [_a-zA-Z0-9] but 'bad-name' does not."
940940

941941
def rejects_an_enum_type_without_values():
942-
with pytest.raises(TypeError, match="missing .* required .* 'values'"):
942+
with pytest.raises(TypeError, match=r"missing .* required .* 'values'"):
943943
# noinspection PyArgumentList
944944
GraphQLEnumType("SomeEnum") # type: ignore
945945
with pytest.raises(TypeError) as exc_info:
@@ -1072,7 +1072,7 @@ def accepts_an_input_object_type_with_a_field_function():
10721072
assert input_field.out_name is None
10731073

10741074
def rejects_an_input_object_type_with_incorrectly_typed_name():
1075-
with pytest.raises(TypeError, match="missing .* required .* 'name'"):
1075+
with pytest.raises(TypeError, match=r"missing .* required .* 'name'"):
10761076
# noinspection PyArgumentList
10771077
GraphQLInputObjectType() # type: ignore
10781078
with pytest.raises(TypeError) as exc_info:

tests/type/test_directives.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def can_compare_with_other_source_directive():
113113
assert directive != other_directive
114114

115115
def rejects_a_directive_with_incorrectly_typed_name():
116-
with pytest.raises(TypeError, match="missing .* required .* 'name'"):
116+
with pytest.raises(TypeError, match=r"missing .* required .* 'name'"):
117117
# noinspection PyArgumentList
118118
GraphQLDirective() # type: ignore
119119
with pytest.raises(TypeError) as exc_info:

tests/validation/test_validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,5 +163,5 @@ class CustomRule(ValidationRule):
163163
def enter_field(self, *_args):
164164
raise RuntimeError("Error from custom rule!")
165165

166-
with pytest.raises(RuntimeError, match="^Error from custom rule!$"):
166+
with pytest.raises(RuntimeError, match=r"^Error from custom rule!$"):
167167
validate(test_schema, doc, [CustomRule], max_errors=1)

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ python =
1818

1919
[testenv:ruff]
2020
basepython = python3.12
21-
deps = ruff>=0.12,<0.13
21+
deps = ruff>=0.13,<0.14
2222
commands =
2323
ruff check src tests
2424
ruff format --check src tests
2525

2626
[testenv:mypy]
2727
basepython = python3.12
2828
deps =
29-
mypy>=1.16,<2
29+
mypy>=1.18,<2
3030
pytest>=8.3,<9
3131
commands =
3232
mypy src tests
@@ -41,7 +41,7 @@ commands =
4141

4242
[testenv]
4343
deps =
44-
anyio>=3.7.1
44+
anyio>=3.7.1,<4
4545
pytest>=7.4,<9
4646
pytest-benchmark>=4,<6
4747
pytest-cov>=4.1,<7

0 commit comments

Comments
 (0)