Commit 95b663ef authored by Nico Alt's avatar Nico Alt
Browse files

Make lint happy

parent 068285ba
......@@ -39,7 +39,8 @@ class AboutDialogWidget:
# "Used in about dialog; it's prefixed by 'Translated by'"
"Localization Lab Translation Teams"
)
localization_lab_url = "https://wiki.localizationlab.org/index.php/Projects" # noqa
localization_lab_url = \
"https://wiki.localizationlab.org/index.php/Projects"
translation_description = f"{translation_teams} {localization_lab_url}"
self._about_dialog.set_translator_credits(
translation_description
......
......@@ -6,7 +6,8 @@ from briar_gtk.notification_handler import NotificationHandler
from briar_gtk.private_chat.private_chat_presenter import PrivateChatPresenter
from briar_gtk.define import APP
from briar_gtk.private_chat.private_chat_view import PrivateChatView
from briar_gtk.conversation_sidebar.conversation_sidebar_view import SidebarView
from briar_gtk.conversation_sidebar.conversation_sidebar_view import \
SidebarView
from briar_gtk.conversation.about_dialog import AboutDialogWidget
......
# Copyright (c) 2020-2021 Nico Alt
# SPDX-License-Identifier: AGPL-3.0-only
# License-Filename: LICENSE.md
from briar_gtk.define import APP
from briar_gtk.conversation_sidebar.conversation_sidebar_presenter import SidebarPresenter
from briar_gtk.conversation_sidebar.conversation_sidebar_presenter import \
SidebarPresenter
from briar_gtk.conversation_sidebar.contact_row import ContactRowWidget
......
......@@ -205,7 +205,7 @@ class PrivateChatPresenter:
vadjustment.connect_after("notify", self._on_upper_notify)
# pylint: disable=unused-argument, line-too-long
def _on_upper_notify(self, g_object, param_spec): # noqa
def _on_upper_notify(self, g_object, param_spec):
"""
https://github.com/dino/dino/blob/v0.2.0/main/src/ui/chat_input/chat_text_view.vala#L51
"""
......@@ -275,7 +275,8 @@ class PrivateChatPresenter:
if Gdk.keyval_name(event.keyval) != 'Return':
return False
# Shift is not pressed
if (event.state & Gdk.ModifierType.SHIFT_MASK) == Gdk.ModifierType.SHIFT_MASK: # noqa
if (event.state & Gdk.ModifierType.SHIFT_MASK) == \
Gdk.ModifierType.SHIFT_MASK:
return False
# Text does not only contain whitespace
if len(self._get_text_from_text_view(widget).strip()) == 0:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment