Skip to content

Commit

Permalink
Drop lines_after_imports setting from isort
Browse files Browse the repository at this point in the history
This makes the tan and isort output a little more consistent
  • Loading branch information
jleclanche committed Dec 12, 2018
1 parent 3cd0b28 commit 62ec6ec
Show file tree
Hide file tree
Showing 24 changed files with 0 additions and 24 deletions.
1 change: 0 additions & 1 deletion djstripe/contrib/rest_framework/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

from . import views


app_name = "djstripe_rest_framework"

urlpatterns = [
Expand Down
1 change: 0 additions & 1 deletion djstripe/event_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
from .enums import SourceType
from .utils import convert_tstamp


logger = logging.getLogger(__name__)


Expand Down
1 change: 0 additions & 1 deletion djstripe/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from .settings import USE_NATIVE_JSONFIELD
from .utils import convert_tstamp


if USE_NATIVE_JSONFIELD:
from django.contrib.postgres.fields import JSONField as BaseJSONField
else:
Expand Down
1 change: 0 additions & 1 deletion djstripe/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from .settings import SUBSCRIPTION_REDIRECT, subscriber_request_callback
from .utils import subscriber_has_active_subscription


DJSTRIPE_SUBSCRIPTION_REQUIRED_EXCEPTION_URLS = getattr(
settings, "DJSTRIPE_SUBSCRIPTION_REQUIRED_EXCEPTION_URLS", ()
)
Expand Down
1 change: 0 additions & 1 deletion djstripe/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import djstripe.models
from djstripe.models.webhooks import _get_version


DJSTRIPE_SUBSCRIBER_MODEL = getattr(
settings, "DJSTRIPE_SUBSCRIBER_MODEL", settings.AUTH_USER_MODEL
)
Expand Down
1 change: 0 additions & 1 deletion djstripe/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from ..fields import JSONField, StripeDateTimeField, StripeIdField
from ..managers import StripeModelManager


logger = logging.getLogger(__name__)


Expand Down
1 change: 0 additions & 1 deletion djstripe/models/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
from .base import StripeModel, logger
from .connect import Account, Transfer


# Override the default API version used by the Stripe library.
djstripe_settings.set_stripe_api_version()

Expand Down
1 change: 0 additions & 1 deletion djstripe/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

from .checks import validate_stripe_api_version


DEFAULT_STRIPE_API_VERSION = "2018-05-21"


Expand Down
1 change: 0 additions & 1 deletion djstripe/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

from . import settings as djstripe_settings


webhook_processing_error = Signal(providing_args=["data", "exception"])

# A signal for each Event type. See https://stripe.com/docs/api#event_types
Expand Down
1 change: 0 additions & 1 deletion djstripe/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
from . import settings as app_settings
from . import views


app_name = "djstripe"

urlpatterns = [
Expand Down
1 change: 0 additions & 1 deletion djstripe/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from django.db.models.query import QuerySet
from django.utils import timezone


ANONYMOUS_USER_ERROR_MSG = (
"dj-stripe's payment checking mechanisms require the user "
"be authenticated before use. Please use django.contrib.auth's "
Expand Down
1 change: 0 additions & 1 deletion djstripe/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

from .models import WebhookEventTrigger


logger = logging.getLogger(__name__)


Expand Down
1 change: 0 additions & 1 deletion djstripe/webhooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import itertools
from collections import defaultdict


__all__ = ["handler", "handler_all", "call_handlers"]


Expand Down
1 change: 0 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

import djstripe # noqa


# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
Expand Down
1 change: 0 additions & 1 deletion makemigrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from django.db import connections
from django.db.utils import OperationalError


DEFAULT_SETTINGS = dict(
DATABASES={"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": ":memory:"}},
DEBUG=True,
Expand Down
1 change: 0 additions & 1 deletion manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import os
import sys


if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.settings")
try:
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

from setuptools import setup


if sys.argv[-1] == "publish":
os.system("python setup.py bdist_wheel upload --sign")
sys.exit()
Expand Down
1 change: 0 additions & 1 deletion tests/settings.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import os


test_db_name = os.environ.get("DJSTRIPE_TEST_DB_NAME", "djstripe")
test_db_user = os.environ.get("DJSTRIPE_TEST_DB_USER", "postgres")
test_db_pass = os.environ.get("DJSTRIPE_TEST_DB_PASS", "")
Expand Down
1 change: 0 additions & 1 deletion tests/test_api_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from djstripe import models
from djstripe import settings as djstripe_settings


try:
reload
except NameError:
Expand Down
1 change: 0 additions & 1 deletion tests/test_contrib/test_rest_framework_permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

from .. import FAKE_CUSTOMER


try:
import rest_framework
except ImportError:
Expand Down
1 change: 0 additions & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
from . import FAKE_CUSTOMER, FAKE_SUBSCRIPTION
from .apps.testapp.models import Organization


TZ_IS_UTC = time.tzname == ("UTC", "UTC")


Expand Down
1 change: 0 additions & 1 deletion tests/test_zz_jsonfield.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from djstripe import fields as fields
from djstripe import settings as djstripe_settings


try:
reload
except NameError:
Expand Down
1 change: 0 additions & 1 deletion tests/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from django.contrib import admin
from django.http.response import HttpResponse


admin.autodiscover()


Expand Down
1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ max-line-length = 113

[isort]
default_section = THIRDPARTY
lines_after_imports = 2
known_first_party = djstripe
multi_line_output = 5
skip = djstripe/migrations/, .tox/
Expand Down

0 comments on commit 62ec6ec

Please sign in to comment.