isort: Reformat using isort.

This commit is contained in:
PIG208 2021-05-28 17:00:04 +08:00 committed by Tim Abbott
parent 37e2596124
commit 5580c68ae5
162 changed files with 539 additions and 444 deletions

View file

@ -1,4 +1,5 @@
from typing import List
from zulint.custom_rules import RuleList
MYPY = False

View file

@ -1,14 +1,14 @@
#!/usr/bin/env python3
from typing import Any, List, Dict, Callable
import argparse
import os
import sys
import argparse
import zipfile
import textwrap
import requests
import urllib.parse
import zipfile
from typing import Any, Callable, Dict, List
import requests
from requests import Response
red = '\033[91m' # type: str

View file

@ -3,9 +3,9 @@
import argparse
import sys
from zulint.command import add_default_linter_arguments, LinterConfig
from zulint.command import LinterConfig, add_default_linter_arguments
from custom_check import python_rules, non_py_rules
from custom_check import non_py_rules, python_rules
EXCLUDED_FILES = [
# This is an external file that doesn't comply with our codestyle

View file

@ -1,10 +1,10 @@
#!/usr/bin/env python3
import os
import sys
import argparse
import subprocess
import glob
import os
import subprocess
import sys
CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
ZULIP_BOTS_DIR = os.path.join(CURRENT_DIR, '..', 'zulip_bots')

View file

@ -1,15 +1,15 @@
#!/usr/bin/env python3
from contextlib import contextmanager
import os
import argparse
import glob
import os
import shutil
import tempfile
from contextlib import contextmanager
import crayons
import twine.commands.upload
import setuptools.sandbox
import twine.commands.upload
REPO_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

View file

@ -3,6 +3,7 @@
import subprocess
import sys
def exit(message: str) -> None:
print('PROBLEM!')
print(message)

View file

@ -1,14 +1,14 @@
#!/usr/bin/env python3
import os
import sys
import argparse
import os
import subprocess
import sys
from collections import OrderedDict
from pathlib import PurePath
from typing import Dict, List, cast
from zulint import lister
from typing import cast, Dict, List
TOOLS_DIR = os.path.dirname(os.path.abspath(__file__))
os.chdir(os.path.dirname(TOOLS_DIR))

View file

@ -1,10 +1,11 @@
import os
import sys
import argparse
import unittest
import pytest
import os
import shutil
import sys
import unittest
import pytest
TOOLS_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
os.chdir(os.path.dirname(TOOLS_DIR))

View file

@ -1,14 +1,15 @@
#!/usr/bin/env python3
from os.path import dirname, basename
import os
import sys
import argparse
import glob
import os
import sys
import unittest
from os.path import basename, dirname
import pytest
def parse_args():
description = """
Script to run test_<bot_name>.py files in the