mirror of https://github.com/zulip/zulip.git
isort: Enable black profile.
Our isort configuration was almost Black-compatible, but we were missing ensure_newline_before_comments. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
22665414fe
commit
72d2e5df15
|
@ -1,7 +1,5 @@
|
|||
[settings]
|
||||
src_paths = ., tools, tools/setup/emoji
|
||||
multi_line_output = 3
|
||||
known_third_party = zulip
|
||||
include_trailing_comma = True
|
||||
use_parentheses = True
|
||||
profile = black
|
||||
line_length = 100
|
||||
|
|
|
@ -5,6 +5,7 @@ from django.core.exceptions import ValidationError
|
|||
from django.utils.translation import ugettext as _
|
||||
|
||||
from zerver.lib.name_restrictions import is_disposable_domain
|
||||
|
||||
# TODO: Move DisposableEmailError, etc. into here.
|
||||
from zerver.models import (
|
||||
DisposableEmailError,
|
||||
|
|
|
@ -36,6 +36,7 @@ from zerver.models import (
|
|||
get_system_bot,
|
||||
get_user_profile_by_email,
|
||||
)
|
||||
|
||||
# Class with helper functions useful for testing archiving of reactions:
|
||||
from zerver.tornado.django_api import send_event
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ from zerver.lib.request import REQ, has_request_variables
|
|||
from zerver.lib.webhooks.common import get_http_headers_from_filename
|
||||
from zerver.lib.webhooks.git import get_pull_request_event_message
|
||||
from zerver.models import UserProfile
|
||||
|
||||
# Gitea is a fork of Gogs, and so the webhook implementation is nearly the same.
|
||||
from zerver.webhooks.gogs.view import gogs_webhook_main
|
||||
|
||||
|
|
Loading…
Reference in New Issue