Skip to content

Commit

Permalink
Fix isort inconsistency
Browse files Browse the repository at this point in the history
  • Loading branch information
axnsan12 committed Dec 27, 2017
1 parent 22853b8 commit ee47897
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import io
import os
import sys

from setuptools import find_packages, setup

requirements_setup = ['setuptools_scm==1.15.6']
Expand Down
3 changes: 2 additions & 1 deletion src/drf_yasg/codecs.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
from future.utils import raise_from

import copy
import json
from collections import OrderedDict

from coreapi.compat import force_bytes
from future.utils import raise_from
from ruamel import yaml

from . import openapi
Expand Down
3 changes: 1 addition & 2 deletions src/drf_yasg/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
from rest_framework.settings import api_settings
from rest_framework.views import APIView

from drf_yasg.app_settings import swagger_settings

from .app_settings import swagger_settings
from .generators import OpenAPISchemaGenerator
from .renderers import OpenAPIRenderer, ReDocRenderer, SwaggerJSONRenderer, SwaggerUIRenderer, SwaggerYAMLRenderer

Expand Down
3 changes: 2 additions & 1 deletion tests/test_management.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from six import StringIO

import json
import os
import random
Expand All @@ -8,7 +10,6 @@
import pytest
from django.contrib.auth.models import User
from django.core.management import call_command
from six import StringIO

from drf_yasg.codecs import yaml_sane_load

Expand Down
11 changes: 8 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ skip_glob = **/migrations/*
atomic = true
multi_line_output = 5
line_length = 120
known_standard_library = types
known_third_party = pytest,_pytest,django,rest_framework
known_first_party = drf_yasg
known_future_library = future,six
known_standard_library =
collections,copy,distutils,functools,inspect,io,json,logging,operator,os,pkg_resources,re,setuptools,sys,
types,warnings
known_third_party =
coreapi,coreschema,datadiff,django,django_filters,djangorestframework_camel_case,flex,inflection,pygments,
pytest,rest_framework,ruamel,setuptools_scm,swagger_spec_validator,uritemplate
known_first_party = drf_yasg,testproj,articles,snippets,users,urlconfs

0 comments on commit ee47897

Please sign in to comment.