From 86da6a894af23281042cb1fcc4644c2c9cd312c5 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Thu, 25 Jul 2019 11:45:52 -0700 Subject: [PATCH] Minor changes to flake8 related updates Signed-off-by: Sunil Mohan Adapa --- plinth/modules/apache/components.py | 4 ++-- plinth/modules/diaspora/__init__.py | 3 ++- plinth/modules/i2p/tests/test_helpers.py | 2 +- plinth/modules/sso/forms.py | 5 ++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/plinth/modules/apache/components.py b/plinth/modules/apache/components.py index 4dd654c9b..70fc64074 100644 --- a/plinth/modules/apache/components.py +++ b/plinth/modules/apache/components.py @@ -69,8 +69,8 @@ class Uwsgi(app.LeaderComponent): component_id should be a unique ID across all components of an app and across all components. - uwsgi_name is the primary part of the configuration file path - which must be enabled/disabled by this component. + uwsgi_name is the primary part of the configuration file path which + must be enabled/disabled by this component. """ super().__init__(component_id) diff --git a/plinth/modules/diaspora/__init__.py b/plinth/modules/diaspora/__init__.py index 0575154c6..74520a3f1 100644 --- a/plinth/modules/diaspora/__init__.py +++ b/plinth/modules/diaspora/__init__.py @@ -28,6 +28,8 @@ from plinth.modules.apache.components import Webserver from plinth.modules.firewall.components import Firewall from plinth.utils import format_lazy +from .manifest import clients + domain_name_file = "/etc/diaspora/domain_name" lazy_domain_name = None # To avoid repeatedly reading from file @@ -70,7 +72,6 @@ description = [ ' federate with other diaspora* pods.') ] -from .manifest import clients # noqa pylint:disable=E402 isort:skip clients = clients app = None diff --git a/plinth/modules/i2p/tests/test_helpers.py b/plinth/modules/i2p/tests/test_helpers.py index 4a5084a1c..a641b1a38 100644 --- a/plinth/modules/i2p/tests/test_helpers.py +++ b/plinth/modules/i2p/tests/test_helpers.py @@ -63,7 +63,7 @@ def test_getting_nonexistent_props(editor): editor.read_conf() editor.idx = 0 with pytest.raises(KeyError): - _ = editor['blabla'] + _ = editor['blabla'] # noqa def test_setting_new_props(editor): diff --git a/plinth/modules/sso/forms.py b/plinth/modules/sso/forms.py index 19f31783c..3c9dd9968 100644 --- a/plinth/modules/sso/forms.py +++ b/plinth/modules/sso/forms.py @@ -18,10 +18,9 @@ Forms for the Single Sign On app of FreedomBox. """ -from django.contrib.auth.forms import ( - AuthenticationForm as DjangoAuthenticationForm -) from captcha.fields import CaptchaField +from django.contrib.auth.forms import \ + AuthenticationForm as DjangoAuthenticationForm class AuthenticationForm(DjangoAuthenticationForm):