Format code with black and autopep8

This commit fixes the style issues introduced in c1d34d6 according to the output
from black and autopep8.

Details: https://deepsource.io/gh/GradienceTeam/Gradience/transform/e09716f7-b874-44c9-9460-9429d37866ca/
This commit is contained in:
deepsource-autofix[bot] 2022-09-28 12:46:35 +00:00 committed by GitHub
parent c1d34d62b5
commit ac7c01cddf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -157,7 +157,8 @@ class GradienceApplication(Adw.Application):
self.win.present()
def save_favourite(self):
self.settings.set_value("favourite", GLib.Variant("as", self.favourite))
self.settings.set_value(
"favourite", GLib.Variant("as", self.favourite))
def reload_user_defined_presets(self):
if self.props.active_window.presets_menu.get_n_items() > 1:
@ -241,8 +242,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("")
@ -1020,15 +1021,19 @@ This app is written in Python and uses GTK 4 and libadwaita.
"""
),
)
about.add_credit_section("Plugins", [
"0xMRTT https://github.com/0xMRTT",
"Jan Apisu https://github.com/aspizu",
]
about.add_credit_section(
"Plugins",
[
"0xMRTT https://github.com/0xMRTT",
"Jan Apisu https://github.com/aspizu",
],
)
about.add_credit_section("Packagers", [
"0xMRTT https://github.com/0xMRTT",
"Lyes Saadi https://github.com/lyessaadi",
]
about.add_credit_section(
"Packagers",
[
"0xMRTT https://github.com/0xMRTT",
"Lyes Saadi https://github.com/lyessaadi",
],
)
about.present()