Add banned imports to prevent standard json import

This commit is contained in:
Ryan P Kilby 2017-07-10 17:22:55 -04:00 committed by Carlton Gibson
parent 8ab75a2f01
commit 901657e7e8
4 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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):

View File

@ -6,3 +6,4 @@ license_file = LICENSE.md
[flake8] [flake8]
ignore = E501 ignore = E501
banned-modules = json = use from rest_framework.utils import json!