diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3846840f9be03733b80bca3db4eccf99646c3654..f1da5de97ec9fd60a5ca4bf292ca40e986129fd2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,8 +12,10 @@ repos: - 'flake8-debugger==3.1.0' - 'flake8-quotes==3.3.2' - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.11 + # Ruff version. + rev: v0.3.7 hooks: + # Run the linter. - id: ruff args: [--fix] - repo: https://github.com/pre-commit/pre-commit-hooks diff --git a/arkindex/documents/serializers/entities.py b/arkindex/documents/serializers/entities.py index 6c98f9115b8d9526c951942b9a981ae779ad00c3..bc9b5a24fceca2944aaf056d0ec39d951ab48b7d 100644 --- a/arkindex/documents/serializers/entities.py +++ b/arkindex/documents/serializers/entities.py @@ -31,7 +31,7 @@ class EntityTypeSerializer(serializers.ModelSerializer): # Get an error if a request tries to change an entity type's corpus corpus = data.get("corpus") if self.instance and corpus: - raise ValidationError({"corpus": ["It is not possible to update an Entity Type\'s corpus."]}) + raise ValidationError({"corpus": ["It is not possible to update an Entity Type's corpus."]}) data = super().to_internal_value(data) return data