Minor changes to flake8 related updates

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Sunil Mohan Adapa 2019-07-25 11:45:52 -07:00
parent 5439084c84
commit 86da6a894a
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2
4 changed files with 7 additions and 7 deletions

View File

@ -69,8 +69,8 @@ class Uwsgi(app.LeaderComponent):
component_id should be a unique ID across all components of an app and component_id should be a unique ID across all components of an app and
across all components. across all components.
uwsgi_name is the primary part of the configuration file path uwsgi_name is the primary part of the configuration file path which
which must be enabled/disabled by this component. must be enabled/disabled by this component.
""" """
super().__init__(component_id) super().__init__(component_id)

View File

@ -28,6 +28,8 @@ from plinth.modules.apache.components import Webserver
from plinth.modules.firewall.components import Firewall from plinth.modules.firewall.components import Firewall
from plinth.utils import format_lazy from plinth.utils import format_lazy
from .manifest import clients
domain_name_file = "/etc/diaspora/domain_name" domain_name_file = "/etc/diaspora/domain_name"
lazy_domain_name = None # To avoid repeatedly reading from file lazy_domain_name = None # To avoid repeatedly reading from file
@ -70,7 +72,6 @@ description = [
' federate with other diaspora* pods.') ' federate with other diaspora* pods.')
] ]
from .manifest import clients # noqa pylint:disable=E402 isort:skip
clients = clients clients = clients
app = None app = None

View File

@ -63,7 +63,7 @@ def test_getting_nonexistent_props(editor):
editor.read_conf() editor.read_conf()
editor.idx = 0 editor.idx = 0
with pytest.raises(KeyError): with pytest.raises(KeyError):
_ = editor['blabla'] _ = editor['blabla'] # noqa
def test_setting_new_props(editor): def test_setting_new_props(editor):

View File

@ -18,10 +18,9 @@
Forms for the Single Sign On app of FreedomBox. Forms for the Single Sign On app of FreedomBox.
""" """
from django.contrib.auth.forms import (
AuthenticationForm as DjangoAuthenticationForm
)
from captcha.fields import CaptchaField from captcha.fields import CaptchaField
from django.contrib.auth.forms import \
AuthenticationForm as DjangoAuthenticationForm
class AuthenticationForm(DjangoAuthenticationForm): class AuthenticationForm(DjangoAuthenticationForm):