File tree 3 files changed +16
-6
lines changed
3 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 13
13
JSON_API_FORMAT_TYPES = "camelize"
14
14
JSON_API_PLURALIZE_TYPES = True
15
15
16
- REST_FRAMEWORK .update (
16
+ REST_FRAMEWORK .update ( # noqa: F405
17
17
{ # noqa
18
18
"PAGE_SIZE" : 1 ,
19
19
}
Original file line number Diff line number Diff line change
1
+ from collections import OrderedDict
2
+
1
3
import inflection
2
4
from django .core .exceptions import ObjectDoesNotExist
3
5
from django .db .models .query import QuerySet
4
6
from django .utils .translation import gettext_lazy as _
5
7
from 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
7
20
8
21
from rest_framework_json_api .exceptions import Conflict
9
22
from rest_framework_json_api .relations import ResourceRelatedField
Original file line number Diff line number Diff line change @@ -10,10 +10,7 @@ extend-ignore =
10
10
# whitespace before ':' - disabled as not PEP8 compliant
11
11
E203,
12
12
# 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
17
14
exclude =
18
15
build/lib,
19
16
.eggs
You can’t perform that action at this time.
0 commit comments