Reformat with ruff format

This commit is contained in:
Philipp Hörist
2026-01-02 17:30:56 +01:00
parent fd70805de6
commit aed2ce4729
27 changed files with 15 additions and 73 deletions

View File

@@ -45,7 +45,6 @@ class ConfigBuilder(Gtk.Builder):
class PGPConfigDialog(GajimAppWindow):
def __init__(self, plugin: PGPPlugin, transient: Gtk.Window) -> None:
GajimAppWindow.__init__(
self,
name="PGPConfigDialog",

View File

@@ -50,7 +50,6 @@ class KeyDialog(GajimAppWindow):
def __init__(
self, plugin: PGPPlugin, account: str, jid: JID, transient: Gtk.Window
) -> None:
GajimAppWindow.__init__(
self,
name="PGPKeyDialog",
@@ -128,7 +127,6 @@ class ChooseGPGKeyDialog(GajimAppWindow):
transient: Gtk.Window,
callback: Callable[[tuple[str, str] | None], None],
) -> None:
GajimAppWindow.__init__(
self,
name="PGPChooseKeyDialog",

View File

@@ -213,7 +213,6 @@ class PGPLegacy(BaseModule):
callback: Callable[[OutgoingMessage], None],
always_trust: bool,
) -> None:
text = message.get_text()
assert text is not None
@@ -263,7 +262,6 @@ class PGPLegacy(BaseModule):
def _raise_message_not_sent(
client: Client, message: OutgoingMessage, error: str
) -> None:
text = message.get_text()
assert text is not None

View File

@@ -83,7 +83,6 @@ if BINARY is None or error:
class PGPPlugin(GajimPlugin):
def init(self):
self.description = _("PGP encryption as per XEP-0027")
if error_msg:
@@ -140,7 +139,6 @@ class PGPPlugin(GajimPlugin):
@staticmethod
def _on_not_trusted(event: PGPNotTrusted) -> None:
def _on_response(response_id: str, do_not_ask_again: bool) -> None:
if response_id == "accept":
event.on_yes(do_not_ask_again)