diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c9d48de..533fb7a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,12 +2,12 @@ ci: autoupdate_schedule: monthly repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.1 + rev: v0.9.4 hooks: - id: ruff - id: ruff-format - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.30.0 + rev: 0.31.1 hooks: - id: check-github-workflows - id: check-readthedocs @@ -17,7 +17,7 @@ repos: - id: blacken-docs additional_dependencies: [black==24.10.0] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.13.0 + rev: v1.14.1 hooks: - id: mypy additional_dependencies: ["marshmallow>=3,<4", "Flask"] diff --git a/src/flask_marshmallow/fields.py b/src/flask_marshmallow/fields.py index 6d127de..1b6c53b 100755 --- a/src/flask_marshmallow/fields.py +++ b/src/flask_marshmallow/fields.py @@ -119,7 +119,7 @@ def _serialize(self, value, key, obj): param_values[name] = attribute_value else: raise AttributeError( - f"{attr_name!r} is not a valid " f"attribute of {obj!r}" + f"{attr_name!r} is not a valid attribute of {obj!r}" ) else: param_values[name] = attr_tpl