From ff40e532c27ff813d6f4d72be46b3601846c3a13 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 13 Sep 2022 21:01:53 +0000 Subject: [PATCH] Format code with black and autopep8 This commit fixes the style issues introduced in 2684012 according to the output from black and autopep8. Details: https://deepsource.io/gh/GradienceTeam/Gradience/transform/2d57ac1e-4ce6-43ef-bae3-43ca08c5f38b/ --- gradience/main.py | 11 ++++++++--- gradience/window.py | 4 +++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/gradience/main.py b/gradience/main.py index 3b06801b..2bd31769 100644 --- a/gradience/main.py +++ b/gradience/main.py @@ -44,6 +44,7 @@ from .plugins_list import GradiencePluginsList from .presets_manager_window import GradiencePresetWindow from pathlib import Path + class GradienceApplication(Adw.Application): """The main application singleton class.""" @@ -202,7 +203,11 @@ class GradienceApplication(Adw.Application): print(self.custom_presets) custom_menu_section = Gio.Menu() - if self.custom_presets["user"] or self.custom_presets["curated"] or self.custom_presets["official"]: + if ( + self.custom_presets["user"] + or self.custom_presets["curated"] + or self.custom_presets["official"] + ): for repo, content in self.custom_presets.items(): for preset, preset_name in content.items(): @@ -210,7 +215,8 @@ class GradienceApplication(Adw.Application): menu_item.set_label(preset_name) if not preset.startswith("error"): menu_item.set_action_and_target_value( - "app.load_preset", GLib.Variant("s", "custom-" + preset) + "app.load_preset", GLib.Variant( + "s", "custom-" + preset) ) else: menu_item.set_action_and_target_value("") @@ -232,7 +238,6 @@ class GradienceApplication(Adw.Application): _("Installed Presets"), custom_menu_section ) - def manage_presets(self, *args): presets = GradiencePresetWindow(self) presets.set_transient_for(self.win) diff --git a/gradience/window.py b/gradience/window.py index d1e55169..d3a04f47 100644 --- a/gradience/window.py +++ b/gradience/window.py @@ -52,7 +52,9 @@ class GradienceMainWindow(Adw.ApplicationWindow): def __init__(self, **kwargs): super().__init__(**kwargs) - self.presets_dropdown.get_popover().connect("show", self.on_presets_dropdown_activate) + self.presets_dropdown.get_popover().connect( + "show", self.on_presets_dropdown_activate + ) # Set devel style if build_type == "debug":