isort: Reformat using isort.
This commit is contained in:
parent
37e2596124
commit
5580c68ae5
162 changed files with 539 additions and 444 deletions
|
@ -1,23 +1,22 @@
|
|||
#!/usr/bin/env python3
|
||||
import os
|
||||
import logging
|
||||
import signal
|
||||
import traceback
|
||||
import zulip
|
||||
import sys
|
||||
import argparse
|
||||
import re
|
||||
import configparser
|
||||
|
||||
import logging
|
||||
import os
|
||||
import re
|
||||
import signal
|
||||
import sys
|
||||
import traceback
|
||||
from collections import OrderedDict
|
||||
|
||||
from types import FrameType
|
||||
from typing import Any, Callable, Dict, Optional
|
||||
|
||||
from matrix_client.errors import MatrixRequestError
|
||||
from matrix_client.client import MatrixClient
|
||||
from matrix_client.errors import MatrixRequestError
|
||||
from requests.exceptions import MissingSchema
|
||||
|
||||
import zulip
|
||||
|
||||
GENERAL_NETWORK_USERNAME_REGEX = '@_?[a-zA-Z0-9]+_([a-zA-Z0-9-_]+):[a-zA-Z0-9.]+'
|
||||
MATRIX_USERNAME_REGEX = '@([a-zA-Z0-9-_]+):matrix.org'
|
||||
|
||||
|
|
|
@ -1,22 +1,17 @@
|
|||
from .matrix_bridge import (
|
||||
check_zulip_message_validity,
|
||||
zulip_to_matrix,
|
||||
)
|
||||
|
||||
from unittest import TestCase, mock
|
||||
from subprocess import Popen, PIPE
|
||||
import os
|
||||
|
||||
import shutil
|
||||
|
||||
from contextlib import contextmanager
|
||||
from subprocess import PIPE, Popen
|
||||
from tempfile import mkdtemp
|
||||
from unittest import TestCase, mock
|
||||
|
||||
from .matrix_bridge import check_zulip_message_validity, zulip_to_matrix
|
||||
|
||||
script_file = "matrix_bridge.py"
|
||||
script_dir = os.path.dirname(__file__)
|
||||
script = os.path.join(script_dir, script_file)
|
||||
|
||||
from typing import List, Iterator
|
||||
from typing import Iterator, List
|
||||
|
||||
sample_config_path = "matrix_test.conf"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue