From 0efcbb3bc3810d17ac4b5c62bcc2f942b731df4a Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Wed, 7 Sep 2022 16:16:58 +0000 Subject: [PATCH] Format code with black and autopep8 This commit fixes the style issues introduced in f1b812c according to the output from black and autopep8. Details: https://deepsource.io/gh/GradienceTeam/Gradience/transform/ff3ee163-e3b3-47ed-8c7e-4940975d1021/ --- src/plugins_list.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/plugins_list.py b/src/plugins_list.py index e54082e5..fe4164a3 100644 --- a/src/plugins_list.py +++ b/src/plugins_list.py @@ -31,11 +31,12 @@ USER_PLUGIN_DIR = os.path.join( class GradiencePluginsList: - """ Represent the plugin group in Advanced""" + """Represent the plugin group in Advanced""" + def __init__(self, win): self.win = win - + self.check_if_plugin_dir_exists() self.pm = PluginManager() @@ -50,10 +51,10 @@ class GradiencePluginsList: for pluginInfo in self.pm.getAllPlugins(): pluginInfo.plugin_object.activate() - + @staticmethod def check_if_plugin_dir_exists(): - """ Check if the plugin directory exists, if not, create it """ + """Check if the plugin directory exists, if not, create it""" if not os.path.exists(USER_PLUGIN_DIR): os.makedirs(USER_PLUGIN_DIR) return False