Fixed E402 flake8 warnings.
This commit is contained in:
parent
2cd2d18851
commit
6448873197
|
@ -35,12 +35,13 @@ Authors: Robert Coup, Justin Bronn, Riccardo Di Virgilio
|
||||||
Inspired by GeoPy (http://exogen.case.edu/projects/geopy/)
|
Inspired by GeoPy (http://exogen.case.edu/projects/geopy/)
|
||||||
and Geoff Biggs' PhD work on dimensioned units for robotics.
|
and Geoff Biggs' PhD work on dimensioned units for robotics.
|
||||||
"""
|
"""
|
||||||
__all__ = ['A', 'Area', 'D', 'Distance']
|
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
from functools import total_ordering
|
from functools import total_ordering
|
||||||
|
|
||||||
from django.utils import six
|
from django.utils import six
|
||||||
|
|
||||||
|
__all__ = ['A', 'Area', 'D', 'Distance']
|
||||||
|
|
||||||
NUMERIC_TYPES = six.integer_types + (float, Decimal)
|
NUMERIC_TYPES = six.integer_types + (float, Decimal)
|
||||||
AREA_PREFIX = "sq_"
|
AREA_PREFIX = "sq_"
|
||||||
|
|
||||||
|
|
|
@ -56,13 +56,13 @@ except ImportError as e:
|
||||||
raise ImproperlyConfigured("Error loading cx_Oracle module: %s" % e)
|
raise ImproperlyConfigured("Error loading cx_Oracle module: %s" % e)
|
||||||
|
|
||||||
# Some of these import cx_Oracle, so import them after checking if it's installed.
|
# Some of these import cx_Oracle, so import them after checking if it's installed.
|
||||||
from .client import DatabaseClient # isort:skip
|
from .client import DatabaseClient # NOQA isort:skip
|
||||||
from .creation import DatabaseCreation # isort:skip
|
from .creation import DatabaseCreation # NOQA isort:skip
|
||||||
from .features import DatabaseFeatures # isort:skip
|
from .features import DatabaseFeatures # NOQA isort:skip
|
||||||
from .introspection import DatabaseIntrospection # isort:skip
|
from .introspection import DatabaseIntrospection # NOQA isort:skip
|
||||||
from .operations import DatabaseOperations # isort:skip
|
from .operations import DatabaseOperations # NOQA isort:skip
|
||||||
from .schema import DatabaseSchemaEditor # isort:skip
|
from .schema import DatabaseSchemaEditor # NOQA isort:skip
|
||||||
from .utils import Oracle_datetime, convert_unicode # isort:skip
|
from .utils import Oracle_datetime, convert_unicode # NOQA isort:skip
|
||||||
|
|
||||||
DatabaseError = Database.DatabaseError
|
DatabaseError = Database.DatabaseError
|
||||||
IntegrityError = Database.IntegrityError
|
IntegrityError = Database.IntegrityError
|
||||||
|
|
|
@ -35,14 +35,14 @@ if PSYCOPG2_VERSION < (2, 4, 5):
|
||||||
|
|
||||||
|
|
||||||
# Some of these import psycopg2, so import them after checking if it's installed.
|
# Some of these import psycopg2, so import them after checking if it's installed.
|
||||||
from .client import DatabaseClient # isort:skip
|
from .client import DatabaseClient # NOQA isort:skip
|
||||||
from .creation import DatabaseCreation # isort:skip
|
from .creation import DatabaseCreation # NOQA isort:skip
|
||||||
from .features import DatabaseFeatures # isort:skip
|
from .features import DatabaseFeatures # NOQA isort:skip
|
||||||
from .introspection import DatabaseIntrospection # isort:skip
|
from .introspection import DatabaseIntrospection # NOQA isort:skip
|
||||||
from .operations import DatabaseOperations # isort:skip
|
from .operations import DatabaseOperations # NOQA isort:skip
|
||||||
from .schema import DatabaseSchemaEditor # isort:skip
|
from .schema import DatabaseSchemaEditor # NOQA isort:skip
|
||||||
from .utils import utc_tzinfo_factory # isort:skip
|
from .utils import utc_tzinfo_factory # NOQA isort:skip
|
||||||
from .version import get_version # isort:skip
|
from .version import get_version # NOQA isort:skip
|
||||||
|
|
||||||
DatabaseError = Database.DatabaseError
|
DatabaseError = Database.DatabaseError
|
||||||
IntegrityError = Database.IntegrityError
|
IntegrityError = Database.IntegrityError
|
||||||
|
|
|
@ -4,7 +4,7 @@ install-script = scripts/rpm-install.sh
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
exclude = build,.git,./django/utils/lru_cache.py,./django/utils/six.py,./django/conf/app_template/*,./django/dispatch/weakref_backports.py,./tests/.env,./xmlrunner,tests/view_tests/tests/py3_test_debug.py,tests/template_tests/annotated_tag_function.py
|
exclude = build,.git,./django/utils/lru_cache.py,./django/utils/six.py,./django/conf/app_template/*,./django/dispatch/weakref_backports.py,./tests/.env,./xmlrunner,tests/view_tests/tests/py3_test_debug.py,tests/template_tests/annotated_tag_function.py
|
||||||
ignore = E128,E402,W601
|
ignore = E128,W601
|
||||||
max-line-length = 119
|
max-line-length = 119
|
||||||
|
|
||||||
[isort]
|
[isort]
|
||||||
|
|
Loading…
Reference in New Issue