Fix formatting and resolve pre-commit errors

This commit is contained in:
Ghosts6 2024-10-19 19:54:10 +01:00
parent f471f5871f
commit 75e1c02019
3 changed files with 7 additions and 4 deletions

View File

@ -25,8 +25,9 @@ from django.utils.timezone import activate, deactivate, override
import rest_framework import rest_framework
from rest_framework import exceptions, serializers from rest_framework import exceptions, serializers
from rest_framework.fields import ( from rest_framework.fields import (
AlphabeticFieldValidator, AlphanumericFieldValidator, BuiltinSignatureError, CustomLengthValidator, DjangoImageField, SkipField, empty, AlphabeticFieldValidator, AlphanumericFieldValidator,
is_simple_callable BuiltinSignatureError, CustomLengthValidator, DjangoImageField, SkipField,
empty, is_simple_callable
) )
from tests.models import UUIDForeignKeyTarget from tests.models import UUIDForeignKeyTarget

View File

@ -1,7 +1,8 @@
from django.test import TestCase from django.test import TestCase
from rest_framework.status import ( from rest_framework.status import (
is_client_error, is_informational, is_redirect, is_server_error, is_success is_client_error, is_informational, is_redirect, is_server_error,
is_success
) )

View File

@ -10,7 +10,8 @@ from django.test import TestCase
from rest_framework import serializers from rest_framework import serializers
from rest_framework.exceptions import ValidationError from rest_framework.exceptions import ValidationError
from rest_framework.validators import ( from rest_framework.validators import (
BaseUniqueForValidator, UniqueTogetherValidator, UniqueValidator, qs_exists BaseUniqueForValidator, UniqueTogetherValidator, UniqueValidator,
qs_exists
) )