Skip to content

Commit

Permalink
chore(deps): update dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
bellini666 committed Jan 3, 2025
1 parent 1ca8aaa commit 3712d82
Show file tree
Hide file tree
Showing 16 changed files with 186 additions and 195 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repos:
- id: check-xml
- id: check-symlinks
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.4
rev: v0.8.5
hooks:
- id: ruff-format
- id: ruff
Expand Down
338 changes: 167 additions & 171 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pytest-django = "^4.1.0"
pytest-mock = "^3.5.1"
pytest-snapshot = "^0.9.0"
pytest-watch = "^4.2.0"
ruff = "^0.8.2"
ruff = "^0.8.5"
django-polymorphic = "^3.1.0"
setuptools = "^75.1.0"
psycopg2 = "^2.9.9"
Expand Down
2 changes: 1 addition & 1 deletion strawberry_django/descriptors.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import inspect
from collections.abc import Callable
from typing import (
TYPE_CHECKING,
Any,
Callable,
Generic,
Optional,
TypeVar,
Expand Down
4 changes: 2 additions & 2 deletions strawberry_django/extensions/django_cache_base.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from collections.abc import Hashable
from collections.abc import Callable, Hashable
from functools import _make_key # noqa: PLC2701
from typing import Callable, Optional, cast
from typing import Optional, cast

from django.core.cache import caches
from django.core.cache.backends.base import DEFAULT_TIMEOUT
Expand Down
2 changes: 1 addition & 1 deletion strawberry_django/fields/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from collections.abc import (
AsyncIterable,
AsyncIterator,
Callable,
Iterable,
Iterator,
Mapping,
Expand All @@ -14,7 +15,6 @@
from typing import (
TYPE_CHECKING,
Any,
Callable,
TypeVar,
Union,
cast,
Expand Down
3 changes: 1 addition & 2 deletions strawberry_django/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from typing import (
TYPE_CHECKING,
Any,
Callable,
Generic,
TypeVar,
cast,
Expand Down Expand Up @@ -40,7 +39,7 @@
from .settings import strawberry_django_settings

if TYPE_CHECKING:
from collections.abc import Sequence
from collections.abc import Callable, Sequence
from types import FunctionType

from django.db.models import Model
Expand Down
3 changes: 1 addition & 2 deletions strawberry_django/mutations/mutations.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import dataclasses
from collections.abc import Mapping, Sequence
from collections.abc import Callable, Mapping, Sequence
from typing import (
Any,
Callable,
Optional,
TypeVar,
Union,
Expand Down
3 changes: 1 addition & 2 deletions strawberry_django/mutations/resolvers.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
from __future__ import annotations

import dataclasses
from collections.abc import Iterable
from collections.abc import Callable, Iterable
from enum import Enum
from typing import (
TYPE_CHECKING,
Any,
Callable,
TypeVar,
cast,
overload,
Expand Down
2 changes: 1 addition & 1 deletion strawberry_django/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
import dataclasses
import itertools
from collections import defaultdict
from collections.abc import Callable
from typing import (
TYPE_CHECKING,
Any,
Callable,
TypeVar,
cast,
)
Expand Down
3 changes: 1 addition & 2 deletions strawberry_django/ordering.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import enum
from typing import (
TYPE_CHECKING,
Callable,
Optional,
TypeVar,
cast,
Expand Down Expand Up @@ -32,7 +31,7 @@
from .arguments import argument

if TYPE_CHECKING:
from collections.abc import Collection, Sequence
from collections.abc import Callable, Collection, Sequence

from django.db.models import Model
from strawberry.types import Info
Expand Down
3 changes: 1 addition & 2 deletions strawberry_django/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
import enum
import functools
import inspect
from collections.abc import Hashable, Iterable
from collections.abc import Callable, Hashable, Iterable
from typing import (
TYPE_CHECKING,
Any,
Callable,
ClassVar,
Optional,
TypeVar,
Expand Down
4 changes: 3 additions & 1 deletion strawberry_django/resolvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import contextvars
import functools
import inspect
from typing import TYPE_CHECKING, Any, Callable, TypeVar, overload
from typing import TYPE_CHECKING, Any, TypeVar, overload

from asgiref.sync import sync_to_async
from django.db import models
Expand All @@ -13,6 +13,8 @@
from typing_extensions import ParamSpec

if TYPE_CHECKING:
from collections.abc import Callable

from graphql.pyutils import AwaitableOrValue

_SENTINEL = object()
Expand Down
3 changes: 1 addition & 2 deletions strawberry_django/type.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
import inspect
import sys
import types
from collections.abc import Collection, Sequence
from collections.abc import Callable, Collection, Sequence
from typing import (
Callable,
Generic,
Optional,
TypeVar,
Expand Down
3 changes: 1 addition & 2 deletions strawberry_django/utils/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@

import dataclasses
import sys
from collections.abc import Iterable, Mapping, Sequence
from collections.abc import Callable, Iterable, Mapping, Sequence
from typing import (
TYPE_CHECKING,
Any,
Callable,
ClassVar,
TypeVar,
Union,
Expand Down
4 changes: 2 additions & 2 deletions tests/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def test_django_export_schema():
def test_django_export_schema_exception_handle():
with pytest.raises(
CommandError,
match="No module named 'tests.fake_schema'",
match=r"No module named 'tests.fake_schema'",
):
call_command("export_schema", "tests.fake_schema")

Expand All @@ -40,7 +40,7 @@ def test_django_export_schema_exception_handle():
mock_import_module,
pytest.raises(
CommandError,
match="The `schema` must be an instance of strawberry.Schema",
match=r"The `schema` must be an instance of strawberry.Schema",
),
):
call_command("export_schema", "tests.schema")

0 comments on commit 3712d82

Please sign in to comment.