From 4a7bda701ce9d7af3693a65bcbdd4558e900dede Mon Sep 17 00:00:00 2001 From: sigma67 Date: Wed, 25 Oct 2023 16:31:13 +0200 Subject: [PATCH] fix lint --- cement/core/foundation.py | 21 ++++++++++----------- cement/ext/ext_plugin.py | 4 +++- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/cement/core/foundation.py b/cement/core/foundation.py index 3459bbfe..7d037dc3 100644 --- a/cement/core/foundation.py +++ b/cement/core/foundation.py @@ -1,25 +1,24 @@ """Cement core foundation module.""" import os -import sys -import signal import platform +import signal +import sys +from importlib import reload as reload_module from time import sleep -from ..core import exc, log, config, plugin -from ..core import output, extension, arg, controller, meta, cache, mail -from ..core import template -from ..core.interface import InterfaceManager + +from ..core import (arg, cache, config, controller, exc, extension, log, mail, + meta, output, plugin, template) +from ..core.deprecations import deprecate from ..core.handler import HandlerManager from ..core.hook import HookManager -from ..core.deprecations import deprecate -from ..utils.misc import is_true, minimal_logger -from ..utils import fs, misc +from ..core.interface import InterfaceManager from ..ext.ext_argparse import ArgparseController as Controller +from ..utils import fs, misc +from ..utils.misc import is_true, minimal_logger join = os.path.join -from importlib import reload as reload_module - LOG = minimal_logger(__name__) if platform.system() == 'Windows': diff --git a/cement/ext/ext_plugin.py b/cement/ext/ext_plugin.py index 5bf7af2f..2d321659 100644 --- a/cement/ext/ext_plugin.py +++ b/cement/ext/ext_plugin.py @@ -89,7 +89,9 @@ class CementPluginHandler(plugin.PluginHandler): LOG.debug("plugin directory '%s' does not exist." % plugin_dir) return False - spec = importlib.machinery.PathFinder().find_spec(plugin_name, [plugin_dir]) + spec = importlib.machinery.PathFinder().find_spec( + plugin_name, [plugin_dir] + ) if not spec: LOG.debug("plugin '%s' does not exist in '%s'." % (plugin_name, plugin_dir))