Update linter requirements (#7010)

This commit is contained in:
Ryan P Kilby 2019-10-22 11:18:51 -07:00 committed by GitHub
parent 65ed7be754
commit a8c86be660
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 23 additions and 23 deletions

View File

@ -1,7 +1,7 @@
# PEP8 code linting, which we run on all commits.
flake8==3.5.0
flake8-tidy-imports==1.1.0
pycodestyle==2.3.1
flake8==3.7.8
flake8-tidy-imports==3.0.0
pycodestyle==2.5.0
# Sort and lint imports
isort==4.3.3
isort==4.3.21

View File

@ -23,8 +23,8 @@ Other access should target the submodules directly
from rest_framework.settings import api_settings
from . import coreapi, openapi
from .inspectors import DefaultSchema # noqa
from .coreapi import AutoSchema, ManualSchema, SchemaGenerator # noqa
from .inspectors import DefaultSchema # noqa
def get_schema_view(

View File

@ -6,7 +6,7 @@ addopts=--tb=short --strict -ra
testspath = tests
[flake8]
ignore = E501
ignore = E501,W504
banned-modules = json = use from rest_framework.utils import json!
[isort]

View File

@ -24,8 +24,8 @@ from rest_framework.utils import formatting
from rest_framework.views import APIView
from rest_framework.viewsets import GenericViewSet, ModelViewSet
from . import views
from ..models import BasicModel, ForeignKeySource, ManyToManySource
from . import views
factory = APIRequestFactory()