diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6d093fc2..80f811e9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ --- repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -18,7 +18,7 @@ repos: - id: check-xml - id: check-symlinks - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.7 + rev: v0.6.9 hooks: - id: ruff-format - id: ruff diff --git a/strawberry_django/type.py b/strawberry_django/type.py index a2193d9f..66a0ed81 100644 --- a/strawberry_django/type.py +++ b/strawberry_django/type.py @@ -217,7 +217,7 @@ def _process_type( settings = django_settings() if ( - kwargs.get("description", None) is None + kwargs.get("description") is None and model.__doc__ and settings["TYPE_DESCRIPTION_FROM_MODEL_DOCSTRING"] ):