Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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 = {}
def initialize_options(self):
default_settings = default.copy()
for key, value in default_settings.items():
setattr(self, key, value)
def initialize_options(self):
default_settings = default.copy()
for (key, value) in itemsview(default_settings):
setattr(self, key, value)