Skip to content

Commit 42976ee

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 42a2789 commit 42976ee

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+107
-86
lines changed

django_sorcery/__init__.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
from .__version__ import (
2-
__author__,
3-
__author_email__,
4-
__description__,
5-
__version__,
6-
)
1+
from .__version__ import __author__, __author_email__, __description__, __version__
72

83

94
__all__ = [

django_sorcery/db/fields.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from contextlib import suppress
33

44
import sqlalchemy as sa
5+
56
from django import forms as djangoforms
67
from django.core import validators as django_validators
78
from django.db.backends.base import operations

django_sorcery/db/meta/column.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
import enum
55
from contextlib import suppress
66

7-
import sqlalchemy as sa
87
from dateutil.parser import parse
8+
9+
import sqlalchemy as sa
10+
911
from django import forms as djangoforms
1012
from django.conf import settings
1113
from django.core import validators as djangovalidators

django_sorcery/db/meta/composite.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from collections import OrderedDict
33

44
import sqlalchemy as sa
5+
56
from django.core.exceptions import ValidationError
67

78
from ...exceptions import NestedValidationError

django_sorcery/db/meta/model.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
from itertools import chain
55

66
import inflect
7+
78
import sqlalchemy as sa
9+
810
from django.apps import apps
911
from django.core.exceptions import FieldDoesNotExist, ValidationError
1012

django_sorcery/db/meta/relations.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from itertools import chain
33

44
import sqlalchemy as sa
5+
56
from django.core.exceptions import ImproperlyConfigured
67

78

django_sorcery/db/models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
import sqlalchemy as sa
55
import sqlalchemy.ext.declarative # noqa
66
import sqlalchemy.orm # noqa
7+
from sqlalchemy.orm.base import MANYTOONE, NO_VALUE
8+
79
from django.core.exceptions import ValidationError
810
from django.utils.text import camel_case_to_spaces
9-
from sqlalchemy.orm.base import MANYTOONE, NO_VALUE
1011

1112
from . import meta, signals
1213
from .mixins import CleanMixin

django_sorcery/db/profiler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from threading import local
77

88
import sqlalchemy as sa
9+
910
from django.conf import settings
1011

1112

django_sorcery/db/query.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import sqlalchemy as sa
66
import sqlalchemy.orm # noqa
7+
78
from django.db.models.constants import LOOKUP_SEP
89

910
from ..utils import lower

django_sorcery/db/url.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from importlib import import_module
44

55
import sqlalchemy as sa
6+
67
from django.conf import settings
78
from django.utils.encoding import force_str
89
from django.utils.module_loading import import_string

0 commit comments

Comments
 (0)