flake8 and sort imports

This commit is contained in:
Laura Klünder 2017-05-08 21:55:45 +02:00
parent 963694395e
commit 9a1ce01fdb
7 changed files with 8 additions and 7 deletions

View file

@ -5,7 +5,7 @@ from django.core.validators import RegexValidator
from django.db import models
from django.utils.translation import ugettext_lazy as _
from shapely import validation
from shapely.geometry import mapping, shape, Polygon, LineString
from shapely.geometry import LineString, Polygon, mapping, shape
from shapely.geometry.base import BaseGeometry
from c3nav.mapdata.utils.geometry import clean_geometry

View file

@ -1,3 +1,4 @@
from .section import Section # noqa
from .source import Source # noqa
from .geometry.section import Space # noqa
from .locations import AreaLocation, LocationGroup # noqa

View file

@ -1,11 +1,7 @@
from collections import OrderedDict
from django.db import models
from django.db.models.base import ModelBase
from django.utils.translation import get_language
from c3nav.mapdata.lastupdate import set_last_mapdata_update
FEATURE_TYPES = OrderedDict()

View file

@ -1,4 +1,5 @@
from collections import OrderedDict
from shapely.geometry import Point, mapping
from c3nav.mapdata.models.base import EditorFormMixin

View file

@ -1,4 +1,5 @@
from collections import OrderedDict
from django.db import models
from django.utils.translation import ugettext_lazy as _

View file

@ -1,4 +1,5 @@
from collections import OrderedDict
from django.db import models
from django.utils.translation import ugettext_lazy as _
from shapely.geometry import CAP_STYLE, JOIN_STYLE, mapping

View file

@ -1,12 +1,13 @@
import numpy as np
from collections import OrderedDict
import numpy as np
from django.core.cache import cache
from django.db import models
from django.utils.functional import cached_property
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ungettext_lazy
from c3nav.mapdata.fields import JSONField, validate_bssid_lines, GeometryField
from c3nav.mapdata.fields import GeometryField, JSONField, validate_bssid_lines
from c3nav.mapdata.lastupdate import get_last_mapdata_update
from c3nav.mapdata.models.base import EditorFormMixin
from c3nav.mapdata.models.section import Section