mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 09:36:49 +03:00
Add banned imports to prevent standard json import
This commit is contained in:
parent
8ab75a2f01
commit
901657e7e8
|
@ -1,5 +1,6 @@
|
||||||
# PEP8 code linting, which we run on all commits.
|
# PEP8 code linting, which we run on all commits.
|
||||||
flake8==2.4.0
|
flake8==2.4.0
|
||||||
|
flake8-tidy-imports==1.1.0
|
||||||
pep8==1.5.7
|
pep8==1.5.7
|
||||||
|
|
||||||
# Sort and lint imports
|
# Sort and lint imports
|
||||||
|
|
|
@ -5,7 +5,7 @@ from __future__ import absolute_import, unicode_literals
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
import decimal
|
import decimal
|
||||||
import json
|
import json # noqa
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
from django.db.models.query import QuerySet
|
from django.db.models.query import QuerySet
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import functools
|
import functools
|
||||||
import json
|
import json # noqa
|
||||||
|
|
||||||
|
|
||||||
def strict_constant(o):
|
def strict_constant(o):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user