File tree Expand file tree Collapse file tree 3 files changed +16
-6
lines changed Expand file tree Collapse file tree 3 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 1313JSON_API_FORMAT_TYPES = "camelize"
1414JSON_API_PLURALIZE_TYPES = True
1515
16- REST_FRAMEWORK .update (
16+ REST_FRAMEWORK .update ( # noqa: F405
1717 { # noqa
1818 "PAGE_SIZE" : 1 ,
1919 }
Original file line number Diff line number Diff line change 1+ from collections import OrderedDict
2+
13import inflection
24from django .core .exceptions import ObjectDoesNotExist
35from django .db .models .query import QuerySet
46from django .utils .translation import gettext_lazy as _
57from rest_framework .exceptions import ParseError
6- from rest_framework .serializers import * # noqa: F403
8+
9+ # star import defined so `rest_framework_json_api.serializers` can be
10+ # a simple drop in for `rest_framework.serializers`
11+ from rest_framework .serializers import * # noqa: F401, F403
12+ from rest_framework .serializers import (
13+ BaseSerializer ,
14+ HyperlinkedModelSerializer ,
15+ ModelSerializer ,
16+ Serializer ,
17+ SerializerMetaclass ,
18+ )
19+ from rest_framework .settings import api_settings
720
821from rest_framework_json_api .exceptions import Conflict
922from rest_framework_json_api .relations import ResourceRelatedField
Original file line number Diff line number Diff line change @@ -10,10 +10,7 @@ extend-ignore =
1010 # whitespace before ':' - disabled as not PEP8 compliant
1111 E203,
1212 # line too long (managed by black)
13- E501,
14- # usage of star imports
15- # TODO mark star imports directly in code to ignore this error
16- F405
13+ E501
1714exclude =
1815 build/lib,
1916 .eggs
You can’t perform that action at this time.
0 commit comments