How to use the isort.settings.default.copy function in isort

To help you get started, we’ve selected a few isort examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github zyfra / ebonite / src / ebonite / utils / module.py View on Github external
def __init__(self):
        config = default.copy()
        config['known_first_party'].append('ebonite')
        config['known_third_party'].append('xgboost')
        config['known_standard_library'].extend(
            ['opcode', 'nturl2path',  # pytest requirements missed by isort
             'pkg_resources',  # EBNT-112: workaround for imports from setup.py (see docker_builder.py)
             'posixpath', 'setuptools',
             'pydevconsole', 'pydevd_tracing', 'pydev_ipython.matplotlibtools', 'pydev_console.protocol',
             'pydevd_file_utils', 'pydevd_plugins.extensions.types.pydevd_plugins_django_form_str', 'pydev_console',
             'pydev_ipython', 'pydevd_plugins.extensions.types.pydevd_plugin_numpy_types',
             'pydevd_plugins.extensions.types.pydevd_helpers', 'pydevd_plugins', 'pydevd_plugins.extensions.types',
             'pydevd_plugins.extensions', 'pydev_ipython.inputhook'])  # "built-in" pydev (and pycharm) modules
        section_names = config['sections']
        sections = namedtuple('Sections', section_names)(*[name for name in section_names])
        self.finder = FindersManager(config, sections)
        self.module2section = {}
github konstellation-io / science-toolkit / vscode / extensions / ms-python.python-2020.3.69010 / pythonFiles / lib / python / isort / main.py View on Github external
def initialize_options(self):
        default_settings = default.copy()
        for key, value in default_settings.items():
            setattr(self, key, value)
github DonJayamanne / pythonVSCode / pythonFiles / isort / main.py View on Github external
def initialize_options(self):
        default_settings = default.copy()
        for (key, value) in itemsview(default_settings):
            setattr(self, key, value)